OpenCV VideoCapture.get()参数详解
编号1 | 详细参数 | 释义 | 英文说明 |
---|---|---|---|
cv2.VideoCapture.get(0) | CV_CAP_PROP_POS_MSEC | 视频文件的当前位置(播放)以毫秒为单位 | Current position of the video file in milliseconds or video capture timestamp. |
cv2.VideoCapture.get(1) | CV_CAP_PROP_POS_FRAMES | 基于以0开始的被捕获或解码的帧索引 | 0-based index of the frame to be decoded/captured next. |
cv2.VideoCapture.get(2) | CV_CAP_PROP_POS_AVI_RATIO | 视频文件的相对位置(播放):0=电影开始,1=影片的结尾。 | Relative position of the video file: 0 - start of the film, 1 - end of the film. |
cv2.VideoCapture.get(3) | CV_CAP_PROP_FRAME_WIDTH | 在视频流的帧的宽度 | Width of the frames in the video stream. |
cv2.VideoCapture.get(4) | CV_CAP_PROP_FRAME_HEIGHT | 在视频流的帧的高度 | Height of the frames in the video stream. |
cv2.VideoCapture.get(5) | CV_CAP_PROP_FPS | 帧速率 | Frame rate. |
cv2.VideoCapture.get(6) | CV_CAP_PROP_FOURCC | 编解码的4字-字符代码 | 4-character code of codec. |
cv2.VideoCapture.get(7) | CV_CAP_PROP_FRAME_COUNT | 视频文件中的帧数 | Number of frames in the video file. |
cv2.VideoCapture.get(8) | CV_CAP_PROP_FORMAT | 返回对象的格式 | Format of the Mat objects returned by retrieve() . |
cv2.VideoCapture.get(9) | CV_CAP_PROP_MODE | 返回后端特定的值,该值指示当前捕获模式 | Backend-specific value indicating the current capture mode. |
cv2.VideoCapture.get(10) | CV_CAP_PROP_BRIGHTNESS | 图像的亮度(仅适用于照相机) | Brightness of the image (only for cameras). |
cv2.VideoCapture.get(11) | CV_CAP_PROP_CONTRAST | 图像的对比度(仅适用于照相机) | Contrast of the image (only for cameras). |
cv2.VideoCapture.get(12) | CV_CAP_PROP_SATURATION | 图像的饱和度(仅适用于照相机) | Saturation of the image (only for cameras). |
cv2.VideoCapture.get(13) | CV_CAP_PROP_HUE | 色调图像(仅适用于照相机) | Hue of the image (only for cameras). |
cv2.VideoCapture.get(14) | CV_CAP_PROP_GAIN | 图像增益(仅适用于照相机)(Gain在摄影中表示白平衡提升) | Gain of the image (only for cameras). |
cv2.VideoCapture.get(15) | CV_CAP_PROP_EXPOSURE | 曝光(仅适用于照相机) | Exposure (only for cameras). |
cv2.VideoCapture.get(16) | CV_CAP_PROP_CONVERT_RGB | 指示是否应将图像转换为RGB布尔标志 | Boolean flags indicating whether images should be converted to RGB. |
cv2.VideoCapture.get(17) | CV_CAP_PROP_WHITE_BALANCE | × 暂时不支持 | Currently not supported |
cv2.VideoCapture.get(18) | CV_CAP_PROP_RECTIFICATION | 立体摄像机的矫正标注(目前只有DC1394 v.2.x后端支持这个功能) | Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently) |