-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbound Local Error #3
Comments
Hi I have exactly the same issue using ver 0.2 of rpotter.py. I also get amongst the Tracking errors: Hope someone can help, Peter |
I did also get the dequeueing error above ... once. I don't get it every time. Thanks, |
I traced the problem to line 235 in rpotter.py and have commented the line out. I still get dequeuing errors but the system does seem to work when an IR source is moved in front of the camera as it is tracked and leftrightupdown gestures detected. Peter |
Same. I commented the Tracking Error line out, and I can at least see
what's happening on the screen now.
It's clearly tracking points, but not the points I want it to track ... it
occasionally recognizes a cat moving across the room as "incendio" or
"lumos" and turns the photon on... but I cannot get it to recognize an IR
source even if it's glowing like the flippin' moon on the screen.
Suggestions are welcomed.
…On Wed, Mar 29, 2017 at 3:53 AM, pseddon ***@***.***> wrote:
I traced the problem to line 235
print "Tracking Error: %s" % e
and have commented the line out. I still get dequeuing errors but they
system does seem to work when an IR source is moved in front of the camera
as it is tracked and leftrightupdown gestures detected.
Peter
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZcp_zjVlIlYHVsSaK7NzTUhmw0S7TS1ks5rqjg9gaJpZM4MpUil>
.
|
And, looking ahead to the next problem ... will the photon respond
correctly in a location without wifi?
The short version is: Girl Scout Harry Potter encampment = no internet, not
even via cellphone hotspot.
…On Fri, Mar 31, 2017 at 1:18 PM, Amanda Weber ***@***.***> wrote:
Same. I commented the Tracking Error line out, and I can at least see
what's happening on the screen now.
It's clearly tracking points, but not the points I want it to track ... it
occasionally recognizes a cat moving across the room as "incendio" or
"lumos" and turns the photon on... but I cannot get it to recognize an IR
source even if it's glowing like the flippin' moon on the screen.
Suggestions are welcomed.
On Wed, Mar 29, 2017 at 3:53 AM, pseddon ***@***.***> wrote:
> I traced the problem to line 235
> print "Tracking Error: %s" % e
>
> and have commented the line out. I still get dequeuing errors but they
> system does seem to work when an IR source is moved in front of the camera
> as it is tracked and leftrightupdown gestures detected.
>
> Peter
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#3 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AZcp_zjVlIlYHVsSaK7NzTUhmw0S7TS1ks5rqjg9gaJpZM4MpUil>
> .
>
|
Can't understand why you are seeing the cat! Have you put a piece of exposed film negative or similar in front of the camera to filter out visible light? I am having trouble using reflected IR light but direct IR from the LED works and the system picks it up and tracks it encircling the IR spot with a red circle. I have just borrowed an HP wand so will see if it works with reflected ir light. Can't help you with the photon as I am not using one. Peter |
Film negative made things worse instead of better. How's that for weird?
Maybe I didn't choose a good piece. IDK. I'm hitting up the local
electronics store to see if they have any suggestions. My IR LEDs are very
directional and I wonder if that's part of the problem.
Curious: What are you using instead of the photon/PIB?
…On Sat, Apr 1, 2017 at 7:40 AM, pseddon ***@***.***> wrote:
Can't understand why you are seeing the cat! Have you put a piece of
exposed negative or similar in front of the camera to filter out visible
light?
I am having trouble using reflected IR light but direct IR from the LED
works and the system picks it up and tracks it encircling the IR spot with
a red circle. I have just borrowed an HP wand so will see if it works with
reflected ir light. Can't help you with the photon as I am not using one.
Peter
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZcp_39qMD6QHZg-qZVq1m0NXoRpa8K_ks5rrmHZgaJpZM4MpUil>
.
|
The IR LED's are very directional (about 10deg beam width) so I am now looking at an array of LEDS (or IR Illuminator as used on security cameras) to get better illumination over a wider area and brighter. The HP wand does reflect IR but with only a single LED illuminating the orientation is very critical and the brightness quite low. I am just using the output from the Pi to drive other circuitry. Peter |
Tried the 0.2 version of the script and seem to be getting further than before -- however, now I'm getting this:
(cv) pi@raspberrypi:~ $ python2.7 rpotter.py
Initializing point tracking
START switch_pin ON for pre-video test
finding...
START incendio_pin ON and set switch off if video is running
Tracking Error: <type 'exceptions.UnboundLocalError'>
Tracking Error: <type 'exceptions.UnboundLocalError'>
Tracking Error: <type 'exceptions.UnboundLocalError'>
Tracking Error: <type 'exceptions.UnboundLocalError'>
Tracking Error: <type 'exceptions.UnboundLocalError'>
This will repeat until CTRL+C.
The text was updated successfully, but these errors were encountered: