dilawar / eye-blink-detector

An eye blink detector in python + opencv
48 stars 24 forks source link

blinky_webcam.py #5

Closed vasulg closed 5 years ago

vasulg commented 7 years ago

when i try to execute blinky_webcam.py in ubuntu, I am getting this error [WARN] failed to get FPS. Setting to 15 [ERR] Failed to get blinks: fileno

dilawar commented 7 years ago

Check if latest commit fixes this issue.

safruk commented 7 years ago

I get this error while running blinky_webcam.py in ubuntu, (image:5098): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(image:5098): GLib-GObject-CRITICAL : g_object_unref: assertion 'G_IS_OBJECT (object)' failed /usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:2889: RuntimeWarning: Mean of empty slice. out=out, kwargs) /usr/local/lib/python2.7/dist-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) [ERR] Failed to get blinks: 'NoneType' object is not iterable

dilawar commented 7 years ago

Most likely the camera is not working. Can you see camera feed in other applications such as cheese?

⁣Sent from handheld device, pardon my brevity.

Sent from BlueMail ​

On 12 Apr 2017, 6:58 PM, at 6:58 PM, safruk notifications@github.com wrote:

I get this error while running blinky_webcam.py in ubuntu,I am getting this error (image:5098): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(image:5098): GLib-GObject-CRITICAL : g_object_unref: assertion 'G_IS_OBJECT (object)' failed /usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:2889: RuntimeWarning: Mean of empty slice. out=out, kwargs) /usr/local/lib/python2.7/dist-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) [ERR] Failed to get blinks: 'NoneType' object is not iterable

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dilawar/eye-blink-detector/issues/5#issuecomment-293575831

safruk commented 7 years ago

The camera is working fine. Cheese as well as when I use cv2 functions in my other programs

dilawar commented 5 years ago

No activity. I guess I did not follow up on it.