Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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)
Comment

PREVIOUS NEXT
Code Example
Python :: fill missing values in column pandas with mean 
Python :: python convert querydict to dict 
Python :: python datetime add minutes 
Python :: file exist python 
Python :: tkinter canvas remove border 
Python :: python copy file to another directory 
Python :: squared sum of all elements in list python 
Python :: auth proxy python 
Python :: exponentiation is the raising of one number to the power of another. this operation is performed using two asterisks **. 
Python :: convert numpy array to dataframe 
Python :: create an array with same value python 
Python :: how to load ui file in pyqt5 
Python :: when did guido van rossum create python 
Python :: python install libs 
Python :: panda get rows with date range 
Python :: convert grayscale to rgb python 
Python :: r2 score sklearn 
Python :: docker python 3.8 ubuntu 
Python :: 2 - 20 python 
Python :: how to get user location in python 
Python :: python check if hotkey pressed 
Python :: insert picture into jupyter notebook 
Python :: like in mysqldb python 
Python :: convert unix timestamp to datetime python pandas 
Python :: python exit button 
Python :: how to remove first row of numpy array 
Python :: python f string thousand separator 
Python :: remove base from terminal anaconda 
Python :: python get list of files in path 
Python :: python create n*n matrix 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =