fix: quick hack to select other camera
This commit is contained in:
parent
eec72dc87c
commit
815f1ab00e
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user