Jump to content

OpenCV: Difference between revisions

117 bytes added ,  11 May 2020
Line 8: Line 8:
=== Free algorithms only ===
=== Free algorithms only ===
<pre>
<pre>
pip install opencv-python opencv-contrib-python
pip install opencv-python
</pre>
</pre>


=== Non-free Algorithms ===
=== Non-free Algorithms ===
Compile [https://github.com/opencv/opencv OpenCV] from source alongside [https://github.com/opencv/opencv_contrib OpenCV-contrib]
<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==