Skip to content

Commit 11b2589

Browse files
committed
fixed wrong parameter for width/height
1 parent a90f3cc commit 11b2589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

01_load_media.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
# Capture video from your webcam
2222
cap = cv2.VideoCapture(0) #Capture video source zero `/dev/video0`
23-
cap.set(16, 1920)
24-
cap.set(9, 1080)
23+
cap.set(3, 1920)
24+
cap.set(4, 1080)
2525

2626
while True:
2727
success, vid = cap.read()
2828
cv2.imshow('Video', vid)
2929
if cv2.waitKey(1) & 0xFF == ord('q'):
30-
break
30+
break

0 commit comments

Comments
 (0)