opencv version using terminal ubuntu code example
Example: how to check opencv version
$ python -c 'import cv2; print(cv2.__version__)' # 'python3' - if you are using another version of python
$ python -c 'import cv2; print(cv2.__version__)' # 'python3' - if you are using another version of python