VideoCapture

asked 2017-04-25 11:56:29 -0600

fayard gravatar image

Hi,

I would like to use cv::VideoCapture to get images from my camera (Imaging Source camera running under Windows through DirectShow, but other cameras might be used later). But I have a few problems :

  • The camera supports different frame rates, and color modes. I don't know how to set this up. It seems that setting cv::CAP_PROP_FPS has no effect on the camera. I don't know either how to setup the camera in Y800 mode.

  • I would like to process every single frame captured by the camera (the processing time is fast enough for the frame rate). It seems that "camera >> image" just gets the last image grabbed by the camera, and it seems to me that calling it twice in a row might give us the same image, and I don't know how to make sure that when you call it twice in between 2 processing steps, no image has been dropped. Some other frameworks seems to allow the user to launch a function every time an image is captured by the device. Is there a way to do such a thing with OpenCV?

Thanks for your help.

edit retag flag offensive close merge delete