📜  opencv 跳过视频帧 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:42.537000             🧑  作者: Mango

代码示例1
import cv2
cap = cv2.VideoCapture('path/to/video/file')
start_frame_number = 50
cap.set(cv2.CAP_PROP_POS_FRAMES, start_frame_number)

# Now when you read the frame, you will be reading the 50th frame
success, frame = cap.read()