From 815f1ab00efd43ebfb281a783ede137f7a0ad529 Mon Sep 17 00:00:00 2001 From: alban Date: Sun, 15 Dec 2024 17:44:54 +0100 Subject: [PATCH] fix: quick hack to select other camera --- process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process.py b/process.py index deef6a8..05445f2 100644 --- a/process.py +++ b/process.py @@ -23,8 +23,8 @@ def capture_frame_from_webcam(): Returns: frame (numpy.ndarray): The captured frame as a NumPy array. """ - # Open a connection to the default webcam (index 0) - cap = cv2.VideoCapture(0) + # Open a connection to the second webcam (index 0) + cap = cv2.VideoCapture(1) if not cap.isOpened(): raise Exception("Could not open webcam. Please check your webcam connection.")