Comments (7)
$ python blinky_gui.py -f ~/Videos/3.avi
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1489, in __call__
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 536, in callit
func(*args)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 141, in _on_timer
TimerBase._on_timer(self)
File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 1203, in _on_timer
ret = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/matplotlib/animation.py", line 876, in _step
still_going = Animation._step(self, *args)
File "/usr/lib/pymodules/python2.7/matplotlib/animation.py", line 735, in _step
self._draw_next_frame(framedata, self._blit)
File "/usr/lib/pymodules/python2.7/matplotlib/animation.py", line 754, in _draw_next_frame
self._draw_frame(framedata)
File "/usr/lib/pymodules/python2.7/matplotlib/animation.py", line 1049, in _draw_frame
self._drawn_artists = self._func(framedata, *self._args)
File "blinky_gui.py", line 121, in animate
tB, bB = extract.find_blinks_using_pixals(data_[:,:])
File "/data/dilawars/Work/GITHUB/eye-blink-detector/extract.py", line 138, in find_blinks_using_pixals
bT, yy = t[x-1:-x], w[x-1:-x] - smoothW
ValueError: operands could not be broadcast together with shapes (0,)
from eye-blink-detector.
This error has been resolved. The problem occurred when I by mistake press the 'q' key without selecting the region of interest.
The problem now is that I am using greyscale videos but processing halts at exactly 6 seconds (No idea why). Also, the second graph below doesn't plot anything on occurrence of a blink
from eye-blink-detector.
The command line after the 6 second halt
Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.
C:\Users\user\Desktop\p\eye>c:\python27\python blinky_gui.py -f 4.avi
Exception in Tkinter callback
Traceback (most recent call last):
File "c:\python27\lib\lib-tk\Tkinter.py", line 1536, in call
return self.func(_args)
File "c:\python27\lib\lib-tk\Tkinter.py", line 587, in callit
func(_args)
File "c:\python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", lin
e 147, in _on_timer
TimerBase._on_timer(self)
File "c:\python27\lib\site-packages\matplotlib\backend_bases.py", line 1305, i
n _on_timer
ret = func(_args, *_kwargs)
File "c:\python27\lib\site-packages\matplotlib\animation.py", line 991, in _st
ep
still_going = Animation._step(self, *args)
File "c:\python27\lib\site-packages\matplotlib\animation.py", line 797, in _st
ep
self._draw_next_frame(framedata, self._blit)
File "c:\python27\lib\site-packages\matplotlib\animation.py", line 816, in _dr
aw_next_frame
self._draw_frame(framedata)
File "c:\python27\lib\site-packages\matplotlib\animation.py", line 1179, in _d
raw_frame
self._drawn_artists = self.func(framedata, *self.args)
File "blinky_gui.py", line 121, in animate
tB, bB = extract.find_blinks_using_pixals(data[:,:])
File "C:\Users\user\Desktop\p\eye\extract.py", line 138, in find_blinks_using
pixals
bT, yy = t[x-1:-x], w[x-1:-x] - smoothW
ValueError: operands could not be broadcast together with shapes (0,) (48,)
[INFO] Writing to file 4.avi_out.csv
[INFO] Writing to file 4.avi_out.csv
from eye-blink-detector.
Six seconds is the window time after which it computes the location of blink.
from eye-blink-detector.
It means, my program is halting at the initialization of the plot of second graph?
from eye-blink-detector.
Yes. I'll fix it soon. If you want to have a look, fork the repo and send the pull request after fixing it.
from eye-blink-detector.
I've added another script blinky_webcam.py
. If you run it, it will capture frames from your camera.
The gui will show you the raw plots as well as detected blinks. The blink detection is very sensitive to running baseline, so if you have lot of noisy background around your eye, the count will not be correct.
Also you may have to expand your eye a bit to be detected for blinks. These algorithms are written for a mouse eye which is quite round 👀
from eye-blink-detector.
Related Issues (5)
- Raspberry Pi HOT 9
- Output HOT 6
- blinky_webcam.py HOT 5
- Error on using blinky_gui.py HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eye-blink-detector.