5,323
edits
Tag: visualeditor |
|||
Line 3: | Line 3: | ||
==Installation== | ==Installation== | ||
* Download Python 3 | |||
*Download Python 3 | |||
=== Free algorithms only === | |||
<pre> | <pre> | ||
pip install opencv-python | pip install opencv-python opencv-contrib-python | ||
</pre> | </pre> | ||
=== Non-free Algorithms === | |||
Compile [https://github.com/opencv/opencv OpenCV] from source alongside [https://github.com/opencv/opencv_contrib OpenCV-contrib] | |||
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. | |||
==Usage== | ==Usage== | ||
===Getting Started=== | ===Getting Started=== | ||
<syntaxhighlight lang="python> | <syntaxhighlight lang="python"> | ||
import cv2 | import cv2 | ||
Line 90: | Line 98: | ||
==Resources== | ==Resources== | ||
* [https://docs.opencv.org/master/d6/d00/tutorial_py_root.html OpenCV Python Tutorial] | |||
*[https://docs.opencv.org/master/d6/d00/tutorial_py_root.html OpenCV Python Tutorial] |