Determine which version of OpenCV

后端 未结 4 1658
一个人的身影
一个人的身影 2021-01-17 08:16

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.

4条回答
  •  时光说笑
    2021-01-17 08:32

    In terminal write:

    • for python 2.X python2 -c 'import cv2; print cv2.__version__'
    • for python 3.X python3 -c 'import cv2; print(cv2.__version__)'

提交回复
热议问题