📅  最后修改于: 2022-03-11 14:45:42.537000             🧑  作者: Mango
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()