Go to Post FIRST robots definitely meet many commonly agreed upon definitions of robots. Some will disagree. Good for them. In my opinion, it's not worth arguing over. - Mikell Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2005, 13:46
nm4 nm4 is offline
Registered User
#0069
 
Join Date: Jan 2005
Location: Quincy, Massachussets
Posts: 3
nm4 is an unknown quantity at this point
Cam Color Caliberation

I am having trouble caleberating the camera. The vision is working perfectly fine, but it doesnt detect colors. If I try to search for a color it says ERROR. please try to get back to me if u can?
THANK YOU
  #2   Spotlight this post!  
Unread 23-01-2005, 14:42
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Cam Color Caliberation

Have you tried the troubleshooting methods in the calibration PDF that came with the camera? It tells you how to remedy the various error messages.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 27-01-2005, 17:33
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: Cam Color Caliberation

We are also having trouble calibrating the camera. What type of lighting does everyone use? We tried regular fluorescent lighting and then we tried the halogen lighting. But none were successful in calibrating all three colors. We kept getting the error "Color not found, or too much light" or "color not found, or not enough light". How many teams actually got their camera calibrated already?

It would have been really nice if there was some technical support for this camera. I also find it funny that in Update #5 FIRST says to contact innovation first for CMUcam2 assistance. However, on the innovation first website, it says that they do not offer any camera support. LOL (wait, why am I laughing? )
  #4   Spotlight this post!  
Unread 27-01-2005, 17:49
Isabel Cole's Avatar
Isabel Cole Isabel Cole is offline
Registered User
AKA: mama cole
FRC #0974
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2001
Location: Los Angeles
Posts: 5
Isabel Cole is on a distinguished road
Re: Cam Color Caliberation

Quote:
Originally Posted by cabbagekid2
We are also having trouble calibrating the camera. What type of lighting does everyone use? We tried regular fluorescent lighting and then we tried the halogen lighting. But none were successful in calibrating all three colors. We kept getting the error "Color not found, or too much light" or "color not found, or not enough light". How many teams actually got their camera calibrated already?

It would have been really nice if there was some technical support for this camera. I also find it funny that in Update #5 FIRST says to contact innovation first for CMUcam2 assistance. However, on the innovation first website, it says that they do not offer any camera support. LOL (wait, why am I laughing? )
i'm also having trouble with my camera... sorry i'm just adding problem upon problem instead of trying to help other teams with their problems but here's my share:
my camera read s the color jut fine and everything and i've gotten as far as the camera giving me values from the target. however, it gave me the same value for green as it did for yellow. being smarter than that... i know something's wrong. also i don't know specifically which numbers i should be looking at because there are some for red yellow and green or blue whatever. but the thing is that i don't know if for one target i should be getting three diff values adn put all those in (say green, then i would get a large number for blue and yellow and a smaller number for red... seeing as green IS a mixture of the primary colors, etc. etc.) even though this may seem like a smart set of numbers to use for the programming, the program isn't giving me any of the values for any of the other colors, just the value of the color of the target. so my question to you guys is what set of numbers should i use and what would be causing the program to give me the same value for two different colors?
sorry to butt in to someone's else's thread, but i didn't want to start a completely new thread with a problem that's very closely related to this one.
thanks, isabel
ps: it doesn't say on my profile but my screen name for aim is binxybel so if there's any way that you can reach me through there, since i feel it's the most direct way of communication, that would be great! thanks!
  #5   Spotlight this post!  
Unread 27-01-2005, 19:42
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: Cam Color Caliberation

Quote:
Originally Posted by Isabel Cole


my camera read s the color jut fine and everything and i've gotten as far as the camera giving me values from the target. however, it gave me the same value for green as it did for yellow. being smarter than that... i know something's wrong. also i don't know specifically which numbers i should be looking at because there are some for red yellow and green or blue whatever. but the thing is that i don't know if for one target i should be getting three diff values adn put all those in (say green, then i would get a large number for blue and yellow and a smaller number for red... seeing as green IS a mixture of the primary colors, etc. etc.) even though this may seem like a smart set of numbers to use for the programming, the program isn't giving me any of the values for any of the other colors, just the value of the color of the target. so my question to you guys is what set of numbers should i use and what would be causing the program to give me the same value for two different colors?
The three numbers I think you're talking about are the RGB numbers. One is for Red, green and blue. These three values make up the color of your target. I believe however that this is not the color that you want for the AEC (automatic exposure control) calibration. The steps that we took for the calibration are...

1) set up the red, green, or yellow target
2) grab a frame
2) click on the target to highlight to make sure that most of it is recognized (highlighted)
3) click on the Red, Yellow, or Green button at the top part of the screen to calibrate it for that target color. If it works sucessfully the program should give you a number in the box rather than the ???. So you will actually only get one number per target calibration.

After calibrating for all three targets, you should have the three numbers that you need to plug into the default camera code.

That's all we got up to for now since we can't seem to calibrate for all the three target colors.

Last edited by cabbagekid2 : 27-01-2005 at 19:44.
  #6   Spotlight this post!  
Unread 28-01-2005, 15:32
aesghalde aesghalde is offline
Programmer
#0815
 
Join Date: Jan 2005
Location: Allen Park, MI
Posts: 1
aesghalde is an unknown quantity at this point
Re: Cam Color Caliberation

Quote:
Originally Posted by cabbagekid2
The three numbers I think you're talking about are the RGB numbers. One is for Red, green and blue. These three values make up the color of your target. I believe however that this is not the color that you want for the AEC (automatic exposure control) calibration. The steps that we took for the calibration are...

1) set up the red, green, or yellow target
2) grab a frame
2) click on the target to highlight to make sure that most of it is recognized (highlighted)
3) click on the Red, Yellow, or Green button at the top part of the screen to calibrate it for that target color. If it works sucessfully the program should give you a number in the box rather than the ???. So you will actually only get one number per target calibration.

After calibrating for all three targets, you should have the three numbers that you need to plug into the default camera code.

That's all we got up to for now since we can't seem to calibrate for all the three target colors.
That is what our team has determined to be the proper steps to calibration after the reading the manual a dozen times.

The only problem we continually our facing is lighting. Our camera can never find the colors that we try to do with a spotlight, flourescent (I know butchered this one) and even nice white lighting.

If anyone out there has their colors calibrated and could help us (and indeed a few other teams ) it would be appreciated. Specifically, what lighting was used and conditions, methods, etc....? Our team specifically has been trying for a few days now and has seen very little result..... Thanks!
  #7   Spotlight this post!  
Unread 02-02-2005, 17:49
kevin.fort kevin.fort is offline
President-Team 1001
FRC #1001 (Hacksaw Robotics)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Cleveland
Posts: 38
kevin.fort is on a distinguished road
Send a message via AIM to kevin.fort
Re: Cam Color Caliberation

Does anyone know what the official colors you need to plug into the camera default code are?

Thx alot
__________________
We build our bots with hacksaws
websites too: http://hacksaw.brush.googlepages.com
  #8   Spotlight this post!  
Unread 02-02-2005, 17:54
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Re: Cam Color Caliberation

The colors you need to put into the camera code are actually numbers that you get after you calibrate the camera using the provided GUI.
  #9   Spotlight this post!  
Unread 03-02-2005, 15:59
kevin.fort kevin.fort is offline
President-Team 1001
FRC #1001 (Hacksaw Robotics)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Cleveland
Posts: 38
kevin.fort is on a distinguished road
Send a message via AIM to kevin.fort
Re: Cam Color Caliberation

Quote:
Originally Posted by nukemknight
The colors you need to put into the camera code are actually numbers that you get after you calibrate the camera using the provided GUI.
yea i know but our numbers range from 68-88 will this matter and if it will what are the rest of you getting for your calibration numbers
__________________
We build our bots with hacksaws
websites too: http://hacksaw.brush.googlepages.com
  #10   Spotlight this post!  
Unread 03-02-2005, 16:15
pickle's Avatar
pickle pickle is offline
Talking vegtable
AKA: Jeremy
#1296 (Full Metal Jackets)
Team Role: Programmer
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Rockwall,TX
Posts: 42
pickle is on a distinguished road
Send a message via AIM to pickle
Re: Cam Color Caliberation

Well, I got some number that worked once, and they worked great until the robot moved... I've had the best luck in a dark hallway using 2 500 watt halogen lights to light the target, We successfully got it to chase down a guy carrying a yellow triangle, so you might want to try that
__________________
2004 Rookie Inspiration Award winner - Midwest Regional
2004 Autodesk Visualization Award winner - Lone Star Regional
2004 Quarterfinalist - Lone Star Regional
2005 Team Spirit Award - Lone Star Regional
  #11   Spotlight this post!  
Unread 03-02-2005, 18:11
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Cam Color Caliberation

Calibration values will be provided at the competition for their lights, iirc. So it won't be too much of a problem there, I think.
  #12   Spotlight this post!  
Unread 04-02-2005, 16:03
Phil Roth Phil Roth is offline
Registered User
#0011 (BASF)
 
Join Date: Jan 2003
Location: Mt. Olive New Jersey
Posts: 31
Phil Roth is an unknown quantity at this point
Send a message via AIM to Phil Roth Send a message via Yahoo to Phil Roth
Re: Cam Color Caliberation

Quote:
Originally Posted by nm4
I am having trouble caleberating the camera. The vision is working perfectly fine, but it doesnt detect colors. If I try to search for a color it says ERROR. please try to get back to me if u can?
THANK YOU
We wrote our own calibration routines that increment the exposure values and print out the TC packets. Then we set our exposure based on the maximum confidence. It works a lot better than the java GUI. Below is the routine although it's only been coded for GREEN. We also got much better results when we debounced the tracking flag to drop out on 3 consecutive packets that didn't meet the minimum pixel (AKA cam.count ) criteria. Cam is working super for us here on team 11. (M.O.R.T.) We're using the camera servo position and a multiplier for active feedback to the drive train and have multiple virtual windows ("VW") and multiple servo pan settings from coarse to superfine( "SP");

void find_exposure( int color )
{
if(calibrate_running == 0) {

camera_stop(); // Stop the camera if it is already tracking
camera_reset(); // Reset the camera, and make sure it reset (actually check for true return)
camera_const_cmd(noise_filter); // Enable the same noise filter for all tracking
camera_const_cmd(raw_mode); // Put into raw mode, this makes it send output numbers as bytes instead
camera_const_cmd(virtual_window);
calibrate_running = 1;

printf("Calibrating for ");
switch(color) {
case GREEN:
printf("GREEN\r");
camera_const_cmd(aec_disable ); // Disable AEC
camera_const_cmd(manual_agc ); // Enable manual AEC and AGC
camera_const_cmd(noise_filter ); // Set noise filter to 6 pixels
camera_const_cmd(raw_mode ); // Set camera output to BINARY
camera_const_cmd(virtual_window); // Set virtual window
camera_const_cmd(yCrCb_mode); // Set yCrCb mode
camera_set_exposure(0); // Set manual exposure value
camera_const_cmd(track_green);
best_confidence = 0;
best_exposure = 0;
one_second_delay = 0;
break;

default:
return;
}
return;
}

if(exposure_val == 255) {
printf("Best Exposure is %d, Best Confidence is %d\r", best_exposure, best_confidence);
camera_stop();
camera_set_exposure( best_exposure );
camera_auto_servo(SUPERFINE_TRACKING, SUPERFINE_TRACKING); // Pan.servo = COARSE, Tilt still COARSE
camera_const_cmd("TC");
parse_mode = 1;
while(1);
}

if(camera_track_update( )) // If we have a new frame
{
num_of_frames++;
// printf("Exposure= %03d Pixel Count = %03d, Confidence = %03d\r", exposure_val, cam.count, cam.conf);
if( cam.count > 1 ) {
num_of_samples++;
confidence_average += cam.conf;
pixel_average += cam.count;
}
}

if(one_second_delay++ >= 9) {
one_second_delay = 0;
pixel_average = pixel_average/num_of_samples;
if(pixel_average < 0 ) pixel_average = 0;
confidence_average = confidence_average/num_of_samples;
if(confidence_average < 0 ) confidence_average = 0;

printf("FPS= %03d Exposure = %03d, Pixel Average = %03d, Conf Average = %03d\r", num_of_frames * 4, exposure_val, pixel_average, confidence_average);
if ((confidence_average/num_of_samples) > best_confidence ) {
best_confidence = confidence_average/num_of_samples;
best_exposure = exposure_val;
}
exposure_val++;
num_of_samples = 0;
num_of_frames= 0;
confidence_average = 0;
pixel_average = 0;
camera_stop();
camera_set_exposure( exposure_val );
camera_const_cmd("TC");
parse_mode = 1;
}

}
  #13   Spotlight this post!  
Unread 04-02-2005, 16:33
Anton's Avatar
Anton Anton is offline
Anton Povzner
#1581 (Element)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Israel
Posts: 51
Anton can only hope to improve
Re: Cam Color Caliberation

WOW. if only I was able to understand more than a third of it, It would be even nicer.
since I didn't understand most of it, could you please explain how can I do the same for other colors? do I just add a new case and make caera_tack_color track another color? or is it more compliciated?
  #14   Spotlight this post!  
Unread 04-02-2005, 16:40
Phil Roth Phil Roth is offline
Registered User
#0011 (BASF)
 
Join Date: Jan 2003
Location: Mt. Olive New Jersey
Posts: 31
Phil Roth is an unknown quantity at this point
Send a message via AIM to Phil Roth Send a message via Yahoo to Phil Roth
Re: Cam Color Caliberation

Quote:
Originally Posted by Anton
WOW. if only I was able to understand more than a third of it, It would be even nicer.
since I didn't understand most of it, could you please explain how can I do the same for other colors? do I just add a new case and make caera_tack_color track another color? or is it more compliciated?
No..It's as simple as filling in the case statements for the other colors. I'll help you get this running if you want. There are also a few modified functions that were re-written like set_exposure( ) and auto_servo( ).

Let me know if you're interested and I'll clean it up for you. The code could be simplified and use a lot less variables, so let me do this for you before you type it in. We're even thinking of running some of our own calibration routines during practice rounds and then saving the data to EEPROM so we can dump it out to a program and then decide our own exposure values.
  #15   Spotlight this post!  
Unread 06-02-2005, 17:55
krhs_programmer's Avatar
krhs_programmer krhs_programmer is offline
Programmer, Engineer, exDriver
#1247 (R.O.K.S.)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Sutton, NH
Posts: 23
krhs_programmer is an unknown quantity at this point
Re: Cam Color Caliberation

if the java gui does work but you still can't calibrate, try lining the camera up w/o using the servos because when you hit calibrate the servo resets to 0. We are only just now realizing this after weeks of frustration.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: (447) Our CMU CAM BOX rufu5 Extra Discussion 2 17-01-2005 19:10
Navigating with only a Cam Zalumaskov Programming 1 16-01-2005 21:10
G-Codes vs. CAM / CNC Forums indieFan Technical Discussion 19 16-06-2004 22:51
Helmet Cam?? archiver 2001 5 23-06-2002 22:58
To Team 025, Nu-Trons Wayne Doenges Chit-Chat 6 18-01-2002 18:04


All times are GMT -5. The time now is 03:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi