5,323
edits
Line 8: | Line 8: | ||
=== Free algorithms only === | === Free algorithms only === | ||
<pre> | <pre> | ||
pip install opencv | pip install opencv-python | ||
</pre> | </pre> | ||
=== Non-free Algorithms === | === Non-free Algorithms === | ||
<pre> | |||
pip install opencv-contrib-python | |||
</pre> | |||
You can also compile [https://github.com/opencv/opencv OpenCV] from source alongside [https://github.com/opencv/opencv_contrib OpenCV-contrib] if you want to do things the hard way | |||
{{hidden | Compilation Instructions | | |||
See [https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu/ https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu] for instructions. | See [https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu/ https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu] for instructions. | ||
<pre> | <pre> | ||
Line 33: | Line 37: | ||
sudo ldconfig | sudo ldconfig | ||
</pre> | </pre> | ||
}} | |||
==Usage== | ==Usage== |