Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The CV_CAP_PROP_FRAME_COUNT will give you the number of frames in a video file. That doesn't apply for a camera (as you don't know how many frames will it capture).

I think you want to use CV_CAP_PROP_FPS which gives you the number of frames per second.

More on the VideoCapture class.