lydiazyang commited on
Commit
04a9deb
·
1 Parent(s): 203076f

Change window size

Browse files
Files changed (1) hide show
  1. index.py +2 -2
index.py CHANGED
@@ -37,8 +37,8 @@ def main():
37
  cap = cv2.VideoCapture(0)
38
 
39
  # Set the video frame width and height (optional)
40
- cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
41
- cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
42
 
43
  # Check if the webcam is opened correctly
44
  if not cap.isOpened():
 
37
  cap = cv2.VideoCapture(0)
38
 
39
  # Set the video frame width and height (optional)
40
+ cap.set(cv2.CAP_PROP_FRAME_WIDTH, 800)
41
+ cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 400)
42
 
43
  # Check if the webcam is opened correctly
44
  if not cap.isOpened():