Go to Post Any team that started with a random word generator can't be bad. - Sperkowsky [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 14-02-2005, 19:58
Code\\Pilot Code\\Pilot is offline
< Only smart people see my avatar
AKA: Rafael Estrada
FRC #1065 (Tatsu)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Florida
Posts: 53
Code\\Pilot is an unknown quantity at this point
Send a message via AIM to Code\\Pilot Send a message via MSN to Code\\Pilot
Do you need the exposure values?

So, my GUI somehow doesn't work, so i used the hyperterminal to calibrate the cam. The values i got from the gui where the RGB maximum and minimum values for wichever color i wan to track. Let's i want to track for green, so i run the GUI, capture the frame, and roll my mouse around the green target to find the max and min values that i would plug-in on the code. I notice in the code there is this line that says:
camera_init(exposure whatever blah blah) do i need these exposure values? if i do, how do i find them without the GUI?
__________________
Join the Red revolution, give me some RED rep!!!!
if it doesn't work, don't force it. Go get a bigger hammer.

int run = 0;
int robot_chasing_you = 1;

if (robot_chasing_you)
{
run = 254;
}

I got 48 Gmail invites left, pm me with your e-mail so i can send you one.
  #2   Spotlight this post!  
Unread 15-02-2005, 15:04
Code\\Pilot Code\\Pilot is offline
< Only smart people see my avatar
AKA: Rafael Estrada
FRC #1065 (Tatsu)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Florida
Posts: 53
Code\\Pilot is an unknown quantity at this point
Send a message via AIM to Code\\Pilot Send a message via MSN to Code\\Pilot
Re: Do you need the exposure values?

would any one answer, :'(???? please????
__________________
Join the Red revolution, give me some RED rep!!!!
if it doesn't work, don't force it. Go get a bigger hammer.

int run = 0;
int robot_chasing_you = 1;

if (robot_chasing_you)
{
run = 254;
}

I got 48 Gmail invites left, pm me with your e-mail so i can send you one.
  #3   Spotlight this post!  
Unread 15-02-2005, 21:15
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Do you need the exposure values?

You need those numbers, but I don't know how to get them without the GUI.
__________________
http://www.mikesorrenti.com/
  #4   Spotlight this post!  
Unread 19-02-2005, 02:15
neilsonster's Avatar
neilsonster neilsonster is offline
Registered User
AKA: Andrew Neilson
FRC #0772 (Sabre Bytes)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 188
neilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to all
Send a message via MSN to neilsonster
Re: Do you need the exposure values?

For some reason the default exposure values seem to be perfect for our school... Luckily we are being given the "official" values at each competition's building, so you really only need to get new ones if you are having trouble tracking with your own lights.
  #5   Spotlight this post!  
Unread 20-02-2005, 19:24
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Do you need the exposure values?

Quote:
Originally Posted by MikeWasHere05
You need those numbers, but I don't know how to get them without the GUI.
Why do we need those numbers. Can anyone explain to me what CR 19 (the camera register that I believe those numbers are inserted into) does?

It seems to me that "track green" in the GUI almost always works under any lighting conditions, regardless of whether I have calibrated yet or not.

And if anyone knows the commands that "track green" in the GUI sends to the camera, I'd be extremely interested in knowing.
  #6   Spotlight this post!  
Unread 20-02-2005, 20:08
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Do you need the exposure values?

Quote:
Originally Posted by Greg Marra
Why do we need those numbers. Can anyone explain to me what CR 19 (the camera register that I believe those numbers are inserted into) does?

It seems to me that "track green" in the GUI almost always works under any lighting conditions, regardless of whether I have calibrated yet or not.

And if anyone knows the commands that "track green" in the GUI sends to the camera, I'd be extremely interested in knowing.
And lo and behold, I have answered my own questions.

"What does 'Track Green' do?"
For the answer to this question, see "CMUcam2GUI_fe\src\config.txt"

"What is CR 19?"

CR 19 sets the camera's internal auto-exposure control level. 0 would create a totally black image. 255 should create a totally white image. The key is keep the image dark enough that bright areas (like what we're trying to track) don't get drowned our by background noise. Basically you want this number to be as low as possible without totally blacking out your image. What the specialized FIRST GUI does is calculate this number for you, saving you a lot of work. I speculate that the progress bar indicates how far it is (0-255) and that the reason why it often doesn't finish is the calibration value is below 255.


Now here's the really big question:

How much variation is there in color detection from unit to unit, and can I trust the numbers first gives me?
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
Acceleration Sensor Connected, but values are odd.... Leav Electrical 7 04-02-2005 15:28
trentonDrive.c: our joystick/wheel drive code gnormhurst Programming 16 03-02-2005 14:40
Dashboard View of Pan and Tilt Servo Values JoeXIII'007 Programming 1 02-02-2005 22:34
Color Values WesleyBalmer Programming 3 15-01-2005 22:26
A testimony to my unique FIRST experience: Ken Leung General Forum 22 14-04-2004 20:45


All times are GMT -5. The time now is 19:17.

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