OpenCV on Raspbery pi error: HIGHGUI ERROR: v4l / v4l2: VIDIOC_CROPCAP

I started working on Rpi. I worked on opencv on windows and ubuntu. Now I want to do image processing on Rpi. I installed the latest version 2.4.8 on my Rpi. And I can open and display the image. However, when I try to open the webcam and display, it gives me an error: HIGHGUI ERROR: v4l / v4l2: VIDIOC_CROPCAP.

Can anyone tell what the problem is?

+7
opencv raspberry-pi
source share
2 answers

I put some error when trying to execute the code that encounters the detection, I solved it by adding the files needed in my working folder (source folder). you can show us the code to find out exactly what you need

0
source share

If you use pre-created binaries, they can be created without v4l support. Try creating your own OpenCV with proven v4l. And, of course, before that install v4l with development files. You can follow this guide to install the required dependencies.

-one
source share

All Articles