I allready installed the library opencv-python-4.10.0.84, then the library is imported and then this error mesage apears:
[ERROR:0@0.069] global obsensor_uvc_stream_channel.cpp:158 cv::obsensor::getStreamChannelGroup Camera index out of range
Error al abrir la cámara.
I would really appreciate any given help, thanks!
MRAB
(Matthew Barnett)
2
Please post the smallest complete code that shows the problem.
I already solved,
this is the code:
import cv2
Inicializar la cámara
cap = cv2.VideoCapture(0)
if not cap.isOpened():
print(“Error al abrir la cámara.”)
exit()
the cv2.VideoCapture(was 6), was pointed to a camera #6 which is not existed in the laptop.
kindest regards