Closed arehman26 closed 5 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
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
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
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
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
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
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
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 .
Check if recent commit fixed your issue.
No activity.
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