Cv2.cv module not found in OpenCV for Python

I am trying to use some constants in the cv2.cv module as follows:

fps = videoCapture.get(cv2.cv.CV_CAP_PROP_FPS)

However, the cv2.cv module does not seem to exist, and I cannot import it in any other way. What can i do with this?

+3
source share
1 answer

if this opencv 2.4.8 is true. cv2.cv module is no longer available.

the constant you are looking for is: cv2.CAP_PROP_FPS

+4
source

All Articles