![]() |
CAMERA
Need help… We are having a serious problem it seems in calibrating our camera. We are using LABview and putting the target(green light) about 12 feet away. The camera seems to only see a bright white light. We run the program (Bells and Whistles version) and the camera pans and tilts correctly (it seems), but never acquires the target. Can anyone tell me how to calibrate the camera…. And what code needs to change to acquire the target. Shouldn’t the camera stop when the target is found? What are we missing?
|
Re: CAMERA
Quote:
-Kevin |
Re: CAMERA
Thanks Kevin... I will try that tonight. If this is the case, why do we need LABview. Also, why are there documents from innovation first to calibrate the camera (in detail).... Not questioning you, I just wonder WHY? Maybe I was trying to make this much harder than it really is... Your help is much appreciated.... Thanks again.....
|
Re: CAMERA
Quote:
However, Kevin has already figured out an awesome set of values for tracking the green light FIRST uses in competitions. If you just use his, it will work wonderfully. Compared to how hard it was to use the camera in 2005, what Kevin has done is pretty much magic. |
Re: CAMERA
Thanks.... What file are the parameters in... Are they in user_routines.c or user_routines_fast.c.... -or- are they in a ".h" file? Thanks for the help....
|
Re: CAMERA
Quote:
-Kevin |
Re: CAMERA
Thanks again.... Kevin is the MAN.... I'll try it tonight....
|
Re: CAMERA
Quote:
Anyway, I suspect you'll find that the default calibration parameters will work quite well. Just FYI, to help teams get the camera running, I started a FAQ last year: http://kevin.org/frc/camera. -Kevin |
Re: CAMERA
Quote:
-Kevin |
Re: CAMERA
Kevin, I'm sorry I did not respond yesterday, but the camera did respond to the light. It works perfectly. Thanks for the help. I don't think we would have solved this without you. We were making this much harder than it really was. Now comes what I hope is the fun part in coding the drive chain to respond and move the robot the way we want it to move. I guess we want the robot to go into the light...(HA) Old horror movie humor. Thanks again.
|
Re: CAMERA
we are getting the camera to see the green light, but it keeps searching and moves off of it, then rotates back to the light and off again,like it cant get a solid fix on it. any suggestions?
|
Re: CAMERA
you have probably put the camera exactly as the manual said. Unfortunately, Kevin's code is upside-down. Switch the macros (Kevin's FAQ says which) which control pan and tilt direction.
|
Re: CAMERA
Quote:
-Kevin |
Re: CAMERA
we finally got the camera working yesterday where it would give us values and the red light would light, today it just keeps searching with no data coming back using the same code(kevin's) that we used yesterday. The red light lights up, but no data comes back, any suggestions what might be causing this. Also we tried kevins new code posted 1/16 and same thing happened.
|
Re: CAMERA
Quote:
// This value defines how many "slow loops" to wait before // sending the tracking servo(s) to their next destination // while in search mode. This provides a small delay for the // camera to lock onto the target between position changes. #define SEARCH_DELAY_DEFAULT 6 and increase this value to 10 and see it it starts working. -Kevin |
Re: CAMERA
We are having trouble getting our camera to follow the target. It gets the target but doesn't follow it, can you help? Also can we have your code for easy c
|
Re: CAMERA
I know it's repetitive, but we got the same thing. Using LabView, it picks up the color, but doesn't track it. Also, we've tried to get our light to show up green, but it just comes up as white. We used different lighting conditions, but because it's always white it usually tries to track the ceiling lights.
|
Re: CAMERA
kevin, thankyou i will try this monday morning unfortnately I dont have access to the school over the weekend.
|
Re: CAMERA
We have the same problem as mentioned twice in this thread that with labview the camera thinks that the green light is white. Also when we use the default code provided by kevin.org the camera will not lock onto the light. It continues scanning and when the defualt values are changed to what labview says they should be closer to the camera will recognize the light(the red light comes on) but it wont stay on it because it keeps going back and forth between the lights on the ceiling.
any ideas or suggestions would be greatly appreciated Thanks |
Re: CAMERA
All,
Kevin's code works fine "right out of the box" with no modifications. Please read this FAQ (particularly Q9). Mike |
Re: CAMERA
Quote:
Kevin, We recompiled with the increase to 10 of the SEARCH_DELAY_DEFAULT. The camera panned slower, but still didn't respond with anything other than "searching..." We had some students play with the configuration (I know, they shouldn't have...). Now we want to revert to the default calibration, how do we go about doing that? Thanks! Team 2051 |
Re: CAMERA
Quote:
|
Re: CAMERA
Quote:
|
Re: CAMERA
thanks. this helped. we are now tracking the light with one minor problem. if we use the diffuser(the white board in front of the lights) the camera keeps searching, if we turn the light tubes directly to the camera the camera tracks the lights. has anybody else had this problem? and any suggestions on what might need modified?
|
Re: CAMERA
Quote:
-Kevin |
Re: CAMERA
Quote:
If using the "bells and whistles" version, go into the camera menu by typing the letter c into the little "to port" box and hit return. From there you can restore the default settings. Do the same for the tracking menu but use the letter t. Make sure you save the changes once you've recalled the default values. -Kevin |
Re: CAMERA
Quote:
When powering the light from a battery, you should disconnect when not actually trying to acquire the light. The debugging dimension has a different temporal scale than the physical world, and the battery is living in the latter. It appears that one charge is good for testing one - or at maximum, two - ideas or one configuration error. When packing 10 lbs in a 5 lb box, like we've done with all the wire, ballasts, and bulbs in the light enclosure, you might expect that the light performance may not be optimal. Especially when the light gets put together in a big rush because you have something more important to do - like debugging camera code. Shadows of a wiring rats nest projected onto the diffuser are probably not the best thing to calibrate to. When all else fails, plug the camera into the LabView CMUcam GUI and take a peek at what it is seeing, rather than tweaking settings blindly while the battery discharges. |
Re: CAMERA
Quote:
|
Re: CAMERA
Hey, Kevin, just a personal question, but do you think that finding the RBG or YcrBrcg(sorry, I forogt how it's called)parameters(color level, max-min etc.) on LABView and then entering them to the color parameters in your code will work even better than setting them on LABView?
|
Re: CAMERA
Quote:
-Kevin |
Re: CAMERA
Hi, I'm the sole programmer on my team of 6 people. I could really use some help on getting the camera to work. I'm using Kevin's Streamlined camera code and am working off of that. I've changed the pan/tilt servos to pwm06 and pwm07, consequently I've taken out the joystick controls for those pwm's in the Default Routine() function. I think I've built the camera correctly, I followed the instructions. However, I'm reading on these forums that I should mount the board upside down? So the power button is on the bottom? Also, in Kevin's Default code I chaned sommething in the user_routines.c in the Process_Data_From_Master_uP() function. Instead of
if(Get_Tracking_State == CAMERA_ON_TARGET) { Switch03_LED = 1; } else { Switch03_LED = 0; } I made it: if(Get_Tracking_State == CAMERA_ON_TARGET) { pwm01 = 150; //Drive Motor Left pwm02 = 150; //Drive Motor Right Switch03_LED = 1; } else { Switch03_LED = 0; } I just want to see if the camera worked. However, the camera didn't even move once! It only moved the first time I plugged it in. After that, ever time I turn the bot on, the camera never moves! I kept all of the same code that Kevin had in Process_Data_From_Master_uP (the tracking stuff, servo_track stuff) and the camera never moved. Do I have to put the drive code (if the camera see's it, then move forward and look for it again) in the user_routines_fast.c? Any help would be greatly appreciated! |
| All times are GMT -5. The time now is 03:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi