opencv python version code example
Example 1: how to check opencv version using python
$ python # "python3"- if you are using another version of python
>>>import cv2
>>>cv2.__version__
Example 2: install opencv
sudo pip3 install opencv-contrib-python
Example 3: check version for opencv
Checking your OpenCV version using Python
$ python #for python3 use python3
>>> import cv2
>>> cv2.__version__
'3.0.0'
Example 4: install opencv
curl https://elektronicavoorjou.nl/wp-content/uploads/2020/06/install-openCV.html?_t=1591714866 | bash