how to know the version of opencv code example
Example 1: how to check opencv version command line
# in terminal type python3 then the following,
import cv2
cv2.__version__
Example 2: check version for opencv
Checking your OpenCV version using Python
$ python #for python3 use python3
>>> import cv2
>>> cv2.__version__
'3.0.0'