dilawar / eye-blink-detector

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

Raspberry Pi #2

Closed arehman26 closed 5 years ago

arehman26 commented 8 years ago

I am trying to use your code for raspberry pi but i am getting stuck in importing the files itself, i cant import the extract and webcam file in the blink.py, i have tried whatever i could find

dilawar commented 8 years ago

Unfortunately I don't have raspberry-pi to test the code. If you can post the exact error msg, I can give some pointers.

On Mon, Mar 28, 2016 at 11:53:40PM -0700, arehman26 wrote:

I am trying to use your code for raspberry pi but i am getting stuck in importing the files itself, i cant import the extract and webcam file in the blink.py, i have tried whatever i could find


You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/dilawar/eye-blink-detector/issues/2

arehman26 commented 8 years ago

I got the file import to work but when I try to run the code I get this error.

usage: blinky.py [-h] -- video-file VIDEO_FILE [--bbox BBOX [BBOX...]] blinky.py: error: argument --video-file/-f is required

Do we have to record a video for it to work or does it capture the video and than look for blinks at the same time?

You have specified two methods for this process, one is edge and the other is dark pixals. both of them are integrated into all together or are they like 2 files for one method?

Thanks

dilawar commented 8 years ago

Ah, I see. Currently the code works for video files only. I am making changes to make it work on both camera and video file. I hope to finish/test it by this weekend.

Both methods run currently. There is no way to choose one between them. I'll probably make it optional to choose one.

best, Dilawar

On Wed, Mar 30, 2016 at 10:19:26PM -0700, arehman26 wrote:

I got the file import to work but when I try to run the code I get this error.

usage: blinky.py [-h] -- video-file VIDEO_FILE [--bbox BBOX [BBOX...]] blinky.py: error: argument --video-file/-f is required

Do we have to record a video for it to work or does it capture the video and than look for blinks at the same time?

You have specified two methods for this process, one is edge and the other is dark pixals. both of them are integrated into all together or are they like 2 files for one method?

Thanks


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/2#issuecomment-203756032

dilawar commented 8 years ago

There is another script ~/blinky_webcam.py which might be able to use webcam (it works on linux). You would need to do the following on ubuntu

vasulg commented 7 years ago

getting this error working on ubuntu Traceback (most recent call last): File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 176, in main() File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 153, in main init() File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinkywebcam.py", line 76, in init box = webcam.get_bounding_box(fstFrame) File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/webcam.py", line 143, in get_bounding_box currentframe = frame.copy() AttributeError: 'NoneType' object has no attribute 'copy'

dilawar commented 7 years ago

Seems like that webcam is not being detected by opencv.

Can you see your webcam feed in some other app like cheese?

⁣Sent from BlueMail ​

On 15 Mar 2017, 11:29 AM, at 11:29 AM, vasulg notifications@github.com wrote:

getting this error working on ubuntu Traceback (most recent call last): File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 176, in

main() File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 153, in main init() File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 76, in init box_ = webcam.get_bounding_box(fstFrame) File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/webcam.py", line 143, in get_bounding_box current_frame_ = frame.copy() AttributeError: 'NoneType' object has no attribute 'copy' -- 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/2#issuecomment-286648595
vasulg commented 7 years ago

thanks a lot.. that got rectified. Now another error confronting me .. Traceback (most recent call last): File "/home/vasupilli/Desktop/blinky_webcam.py", line 176, in main() File "/home/vasupilli/Desktop/blinky_webcam.py", line 153, in main init() File "/home/vasupilli/Desktop/blinkywebcam.py", line 76, in init box = webcam.get_bounding_box(fstFrame) AttributeError: 'module' object has no attribute 'get_bounding_box

I tried pip install planar module.. but I ended up with error.. Not getting installed. Please send a solution for this thanks in advance!

On Wed, Mar 15, 2017 at 11:43 AM, Dilawar Singh notifications@github.com wrote:

Seems like that webcam is not being detected by opencv.

Can you see your webcam feed in some other app like cheese?

⁣Sent from BlueMail ​

On 15 Mar 2017, 11:29 AM, at 11:29 AM, vasulg notifications@github.com wrote:

getting this error working on ubuntu Traceback (most recent call last): File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 176, in

main() File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 153, in main init() File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/blinky_webcam.py", line 76, in init box_ = webcam.get_bounding_box(fstFrame) File "/home/vasupilli/Desktop/New folder (3)/Current/eye-blink-detector-master/webcam.py", line 143, in get_bounding_box current_frame_ = frame.copy() AttributeError: 'NoneType' object has no attribute 'copy' -- 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/2# issuecomment-286648595

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dilawar/eye-blink-detector/issues/2#issuecomment-286650617, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZDnwRAPeA43d0oxbAbhC5mfHmippCEks5rl4GPgaJpZM4H6dKa .

dilawar commented 7 years ago

Check if recent commit fixed your issue.

dilawar commented 5 years ago

No activity.