Can I set the color depth while capturing the webcam image using OpenCV?
I am capturing the image using OpenCV in C++ firstFrame = cvQueryFrame(capture); it is easy to set the width and height properties by cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH, WIDTH ); cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT, HEIGHT ); I wonder if there is a way to specify the color depth as well without further processing the frame? According to the documentation , you should be able to do it using CV_CAP_PROP_FORMAT if you use the function retrive() to get your frame. CV_CAP_PROP_FORMAT Format of the Mat objects returned by retrieve() . However, notice also that