Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

opencv skip video frames

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()
Source by answers.opencv.org #
 
PREVIOUS NEXT
Tagged: #opencv #skip #video #frames
ADD COMMENT
Topic
Name
2+8 =