M
M
metaphorism2020-09-01 23:54:40
linux
metaphorism, 2020-09-01 23:54:40

Why doesn't VideoCapture(0) return an object?

I was looking for a program for my study project that would work with the opencv library and track the movement on the stage and ran into the following problem: when I try to run a python script with the command python3 -m trace --trace myscript.py, which contains the function VideoCapture( 0), the console gives me the following error: VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV Unable to stop the stream: Device or resource busy. I checked the camera: it supports YUYV and MJPG, I also see /dev/video0 in the list of devices, moreover, the camera broadcasts a video stream through the browser if you use the motion library. But for some reason opencv refuses to work. Please, help. Is it possible that you need to reinstall the camcorder drivers?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question