Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The line cout << "\n " << CV_CAP_PROP_FPS << "\n " will print the value of MACRO CV_CAP_PROP_FPS which may be 5, instead you need to use cap.get(CV_CAP_PROP_FPS) to get the frame rate.

The line cout << "\n " << CV_CAP_PROP_FPS << "\n " will print the value of MACRO CV_CAP_PROP_FPS which may be 5, instead you need to use cap.get(CV_CAP_PROP_FPS) to get the frame rate.