Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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.
Source by techoverflow.net #
 
PREVIOUS NEXT
Tagged: #set #camera #width #height #opencv #python
ADD COMMENT
Topic
Name
5+2 =