|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Camera Is Spazzing Out!
I've posted a few questions in various places and I've decided to bring it all together in one thread. We're having major issues with our camera and we can't figure out what's wrong.
At first, we couldn't get the camera to scan, but now we can. Also, we can't figure out what we changed in order to allow the camera to scan. Now, when we turn our robot on, "scanning..." appears for a little bit. After that, the camera will start saying that it sees the target, as if everything is green. The red light on the camera, which we noticed is on when the camera tracks, will blink randomly as the camera says it can see the target. If you put the lens cap on, the camera scans perfectly, so we know there's something wrong with what the camera is seeing. The camera is perfectly calibrated in LabVIEW, and we've done exactly what the manual says. We just don't understand what is making the camera do this. We're all novice programmers, so we just don't know what to do. Any help at all would be absolutely amazing. Please help! |
|
#2
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
Quote:
-Kevin |
|
#3
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
Our team is having the same problem. I think it has something to do with very bright lights. Sometimes the camera will sort of lock onto a ceiling light or something and not continue the search algorithm. It'll just sort of jerk/vibrate around in one area. It tracks the vision target fine if it sees it first, but sometimes it'll catch something else....i dunno how to counter/fix this... The camera even locked onto a window when there was a reflection of a bright light! (This is using the default camera driver, no changes)
|
|
#4
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
the first time we got ours to work properly we had to show it the green light several times and it took a while before it "saw the light" i think maybe it was because the room we are in was pretty bright try it in a darker room see if that helps any.
|
|
#5
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
Quote:
Quote:
-Kevin |
|
#6
|
|||
|
|||
|
Re: Camera Is Spazzing Out!
Quote:
We actually decreased the value of SEARCH_DELAY_DEFAULT to 3, and it seems to work better, but only when there isn't any fluorescent lighting around. Unfortunately, all competitions will have fluorescent lighting. If you don't have to calibrate the camera for camera_s, how can you make the camera so it doesn't see the white lights? |
|
#7
|
|||
|
|||
|
Re: Camera Is Spazzing Out!
Oh, I forgot something. Also, once you show it the green light, the camera will stay locked on it, until something comes between the camera and the light. The camera kind of reminds me of my grandma's dog. He can't find his ball by himself, but once you point it out to him, he goes running for it. (I hate yappy little dogs) Does anyone else have this problem and what have you done about it?
|
|
#8
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
Another couple of things to check is to be sure that your camera is in focus and that the backup battery is fully charged. A lot of times when the backup battery is low, you can get some pretty strange behavior from the camera. Also, we're using a custom scanning algorithm, and received sort of a weird jerky motion when the max angle that the camera was allowed to tilt to was less than the angle it needed to be at to track.
The scanning algorithm wasn't paying attention to the maxes set by Kevin's code, so it would find the target, then When tracking, it would say "Hey, I'm too far up, let me tilt down" and lose the target, then it would go back to the scanning code... ad infinitum. |
|
#9
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
Quote:
|
|
#10
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
One way to combat the camera locking onto fluorescent lighting or really bright lights is to make the camera code check the confidence level of the tracked blob. For us, when the camera "locked" onto any light other than the actual vision target it would have a very low confidence level and sort of "spaz out" (i.e. jerky). I made the code check the confidence level for a higher value and it seemed to fix the problem.
The code you need to change is in tracking.c, in the function Servo_Track() near the beginning. There's a line that looks like this: if(T_Packet_Data.my != 0) Which checks if the camera found a target, you simply change it to make sure the camera found a 'good' target like so: if(T_Packet_Data.my != 0 && T_Packet_Data.confidence > some_value) I just sort of tweaked around 'some_value' till I got good results. A confidence of 80-90 seems pretty good. |
|
#11
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
when we tested it it started tracking something else, not a light. a little more specifically, lol, one of our programmers, and he wasn't wearing any green let alone a green light.
|
|
#12
|
|||||
|
|||||
|
Re: Camera Is Spazzing Out!
Quote:
That's an excellent idea. Why didn't I think of this??? |
|
#13
|
|||
|
|||
|
Re: Camera Is Spazzing Out!
Quote:
It was tracking my team's mentor/teacher, rather than the green light, fixed it with some nudging of some values. |
|
#14
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
Quote:
|
|
#15
|
||||
|
||||
|
Re: Camera Is Spazzing Out!
OK, I finally got the camera to work, all it took was a new adapter (3.5 weeks to find that out...) So now we found the light and I think the camera gets so excited and freaks out. Any help for our epileptic light?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMU Camera kills robot controller if not found. | Chris_Elston | Programming | 21 | 27-03-2006 14:30 |
| How To Use the Google Camera | generalbrando | Kit & Additional Hardware | 2 | 07-02-2006 16:00 |
| Camera pointing error? | Craig Putnam | Programming | 14 | 21-01-2006 02:52 |
| Scripting Setup and the Camera + Serial Port Drivers | CJO | Programming | 22 | 11-01-2006 17:42 |
| CMUCam2 Camera Code - Are important parts commented out? | Mr. Lim | Programming | 4 | 14-01-2005 12:11 |