CV_CAP_PROP_RECTIFICATION Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently) CV_CAP_PROP_WHITE_BALANCE Currently unsupportedġ8. CV_CAP_PROP_CONVERT_RGB Boolean flags indicating whether images should be converted to RGB.ġ7. CV_CAP_PROP_EXPOSURE Exposure (only for cameras).ġ6. CV_CAP_PROP_GAIN Gain of the image (only for cameras).ġ5. CV_CAP_PROP_HUE Hue of the image (only for cameras).ġ4. CV_CAP_PROP_SATURATION Saturation of the image (only for cameras).ġ3. CV_CAP_PROP_CONTRAST Contrast of the image (only for cameras).ġ2. CV_CAP_PROP_BRIGHTNESS Brightness of the image (only for cameras).ġ1. CV_CAP_PROP_MODE Backend-specific value indicating the current capture mode.ġ0. CV_CAP_PROP_FORMAT Format of the Mat objects returned by retrieve(). CV_CAP_PROP_FRAME_COUNT Number of frames in the video file.Ĩ.
#Uvc camera control flash led control linux code
CV_CAP_PROP_FOURCC 4-character code of codec.ħ. CV_CAP_PROP_FRAME_HEIGHT Height of the frames in the video stream.Ħ. CV_CAP_PROP_FRAME_WIDTH Width of the frames in the video stream.Ĥ. CV_CAP_PROP_POS_AVI_RATIO Relative position of the video fileģ. CV_CAP_PROP_POS_FRAMES 0-based index of the frame to be decoded/captured next.Ģ. CV_CAP_PROP_POS_MSEC Current position of the video file in milliseconds.ġ. #cv2.imshow("thresholded", imgray*thresh2)įor reference, the first argument in the cap.set() command refers to the enumeration of the camera properties, listed below: 0. #set the width and height, and UNSUCCESSFULLY set the exposure time Here is the code, using the cv2 bindings in Python, and I can confirm that it runs: import cv2 The confusing thing is that I am able to change some of the camera properties but not all of them, and I am unsure of what I am doing wrong.
I am doing some image analysis on a video stream and I would like to be able to change some of the camera parameters from my video stream. I am using OpenCV (2.4) and Python (2.7.3) with a USB camera from Thorlabs (DC1545M).