Determine which version of OpenCV

后端 未结 4 1665
一个人的身影
一个人的身影 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:43

    >>> from cv2 import __version__
    >>> __version__
    '$Rev: 4557 $'
    

    If that doesn't work then, use cv instead of cv2.

提交回复
热议问题