thearn / webcam-pulse-detector

A python application that detects and highlights the heart-rate of an individual (using only their own webcam) in real-time.
Other
3.15k stars 594 forks source link

HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP #4

Open simenko opened 11 years ago

simenko commented 11 years ago

Ubuntu 12.04.2 OpenCV 2.4.5 Python 2.7.3

After running "python webcam-pulse-detector/get_pulse.py" I get an error "HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP"

My webcam is turned on and I see window with webcam output when I run script.

thearn commented 11 years ago

Do the other functions of the application (data plotting, etc) work fine as well?

And do you get this error when running any other OpenCV based applications? I uploaded a test program (test_webcam.py) for people to try that's independent of my other code, to help narrow down openCV problems.

simenko commented 11 years ago

No, I can only see window with video from webcam - no data, no plotting at all.

When I run test_webcam.py I get exactly the same result.

I did not try to run any other OpenCV apps - I have installed OpenCV just to try pulse detector.

452 commented 10 years ago

I have same problem

manolovaza commented 10 years ago

I have also the same problem. Is there already a solution or explanation?

thearn commented 10 years ago

@manolovaza , are you also on Ubuntu? I've unfortunately had a difficult time reproducing the result, it seems to be an OpenCV build issue. It doesn't seem to be something that I can fix within the scope of this code - A working fix would be in the form of an upstream patch to OpenCV (or it's python bindings).

Side note: I'm working on a non-opencv version of the code as well.