fix: quick hack to select other camera

This commit is contained in:
alban 2024-12-15 17:44:54 +01:00
parent eec72dc87c
commit 815f1ab00e

View File

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