Answers for "get video width and height cv2"

0

get video width and height cv2

import cv2
file_path = "./video.avi"  # change to your own video path
vid = cv2.VideoCapture(file_path)
height = vid.get(cv2.CAP_PROP_FRAME_HEIGHT)
width = vid.get(cv2.CAP_PROP_FRAME_WIDTH)
Posted by: Guest on May-07-2021

Code answers related to "get video width and height cv2"

Python Answers by Framework

Browse Popular Code Answers by Language