title: OpenCV : how to get raw YUY2 image from webcam?
body: <p>Do you know how to get <strong>raw YUY2</strong> image from webcam, using OpenCV-DirectShow (no VFW) ?</p>
  
  <p><a href="http://opencv.willowgarage.com/wiki/CameraCapture" rel="nofollow">http://opencv.willowgarage.com/wiki/CameraCapture</a>  : I succeed getting IPL image (Intel Processing Library image) using the example.</p>
  
  <p>Using the function cvShowImage() in the code, the image is nice on the screen. But I don't want to show image on the screen, nor IPL format, I just want YUYV raw data...</p>
  
  <p>The second part of the wiki page would be what I want, but deviceSetupWithSubtype() does not seem to exist any longer in OpenCV 2.4 (even Google does not know it).</p>
  
  <p>EDIT : I found : it is in the rar file linked on the page ! Google does not "see" in rar files. Here is the link : <a href="http://opencv.willowgarage.com/wiki/CameraCapture?action=AttachFile&amp;do=get&amp;target=Camera+property+Settings.rar" rel="nofollow">http://opencv.willowgarage.com/wiki/CameraCapture?action=AttachFile&amp;do=get&amp;target=Camera+property+Settings.rar</a> . I am going to study this.</p>