I am trying to use cap = cv2.VideoCapture() and i have to keep changing the camera index to like 0 or 1 or 2
01:38 22 Sep 2026

I have heard you can use the "-1" camera index to get the first camera found but it doesn't work and i am on Macos if that changes anything.

python macos opencv camera