Commit
·
04a9deb
1
Parent(s):
203076f
Change window size
Browse files
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,
|
| 41 |
-
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,
|
| 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():
|