OpenCV VideoCapture.get()参数详解

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)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值