Answers for "opencv python get total number of frames"

0

python opencv number of frames

import cv2

cap = cv2.VideoCapture("video.mp4")
length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
print( length )
Posted by: Guest on February-23-2021

Code answers related to "opencv python get total number of frames"

Python Answers by Framework

Browse Popular Code Answers by Language