cv2.CAP_PROP_POS_FRAMES
时间: 2023-09-16 08:15:40 浏览: 84
绘图2.cap
cv2.CAP_PROP_POS_FRAMES is a flag used in OpenCV to get or set the current frame position in a video file or stream. The value of this flag represents the zero-based index of the current frame.
For example, if we set the value of cv2.CAP_PROP_POS_FRAMES to 100, then the next frame that is read from the video will be the 101st frame. This flag is useful when we want to jump to a particular frame in a video or when we want to know the current position of the video playback.
阅读全文