Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

set camera width and height opencv python

import cv2

cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH,1200)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,720)

#BTW
#cv2.CAP_PROP_FRAME_WIDTH=3
#cv2.CAP_PROP_FRAME_HEIGHT=4
#You can change them to those values If you want to.
Comment

PREVIOUS NEXT
Code Example
Python :: python datetime strftime 
Python :: difference of two set in python 
Python :: python convert bool to string 
Python :: python list slicing 
Python :: python get cookie from browser 
Python :: tkinter yes no dialogue box 
Python :: Get game status discord.py 
Python :: pandas merge certain columns 
Python :: write data to using pickle 
Python :: deleting dataframe row in pandas based on column value 
Python :: sqlalchemy create engine Microsoft SQL 
Python :: show all urls django extensions 
Python :: fastapi json request 
Python :: read excel file in python 
Python :: python how to check if first character in string is number 
Python :: strings are immutable in python 
Python :: print list in reverse order python 
Python :: shebang python 
Python :: python google chrome 
Python :: extract pdf with python 
Python :: where is tensorflow slim 
Python :: python replace char in string 
Python :: how to get username with userid discord.py 
Python :: pandas pad method 
Python :: pyautogui press 
Python :: How to check for palindromes in python 
Python :: one-line for loop python 
Python :: python webbrowser close tab 
Python :: django check if user is admin 
Python :: how to get unique value of all columns in pandas 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =