I want to write to short code snippet in python, to determine which version of OpenCV has been installed in my System. How do i do it ? Thank you.
In terminal write:
python2 -c 'import cv2; print cv2.__version__'
python3 -c 'import cv2; print(cv2.__version__)'