usb-camera

Can't open camera by index on Raspberry-pi4

Can't open camera by index on Raspberry-pi4 Question: So, i installed the official Raspberry-pi OS "Raspberry pi OS Lite 64" and installed OpenCV. But when trying to call cv2.VideoCapture(1) an error appears (i have USB camera): [ WARN:[email protected] ] global /io/opencv/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video0): can’t open camera by index. My code: import cv2 cap = …

Total answers: 1