I run the code by typing
$ python sprint_hist_Kalman.py /dev/video0
But the output is an error like this
('read frame', 1) (480, 640, 3) Traceback (most recent call last): File "sprint_hist_Kalman.py", line 303, in <module> main() File "sprint_hist_Kalman.py", line 299, in main processVideo(v) File "sprint_hist_Kalman.py", line 119, in processVideo for bx in range(0, width - bwidth, bwidth): NameError: global name 'bwidth' is not defined
instead
I'm sorry but did I run the program correctly or there must be something to add to the command?
And what is bwidth variable by the way, why you didn't define it anywhere in the code?
Thanks in advance
I run the code by typing
$ python sprint_hist_Kalman.py /dev/video0But the output is an error like this
('read frame', 1) (480, 640, 3) Traceback (most recent call last): File "sprint_hist_Kalman.py", line 303, in <module> main() File "sprint_hist_Kalman.py", line 299, in main processVideo(v) File "sprint_hist_Kalman.py", line 119, in processVideo for bx in range(0, width - bwidth, bwidth): NameError: global name 'bwidth' is not definedinstead
I'm sorry but did I run the program correctly or there must be something to add to the command?
And what is bwidth variable by the way, why you didn't define it anywhere in the code?
Thanks in advance