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.")