YUY2 FORMAT VIDEO CAPTURE USING Open CV

asked 2015-11-24 23:22:18 -0600

Saran gravatar image

Hi all, I have a trouble with Open CV in Capturing YUY2 Format from a HD 720p Webcam. The Webcam can Support Both MJPG and YUY2 Format. I want to grab only the YUY2 Format from the Webcam. I'm Using Emgu CV v3.0.0.2157 (cross platform .Net wrapper to the OpenCV image processing ). The function I used to grab the frame from the camera is

                                                      "  frame = capture.QueryFrame(); " ,  where frame is  (Mat frame;).

Is there any way to grab YUY2 format from the camera, whether " QueryFrame() " can grab YUY2 Format.

I have also set the Camera Format to YUY2 before Capturing , mentioned below "capture.SetCaptureProperty(Emgu.CV.CvEnum.CapProp.FourCC, 0x32595559);" , where 0x32595559 is the Fourcc for YUY2, but no use it sill can able to capture MJPG Format.. Pls help me..Thank you

edit retag flag offensive close merge delete