Go to Post FRANK, YOU'RE THE MAN. - Libby K [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 06-03-2006, 09:43
nukem nukem is offline
Registered User
#1676
 
Join Date: Jan 2005
Location: Hillsdale, NJ
Posts: 43
nukem is on a distinguished road
Camera Lighting Values At Regionals

At Trenton FIRST made an announcement that they had the lighting values for the arena, we got them but never put them in. We went to a number of other teams and asked them if they were using them and they all said no because their camera worked fine with the default values, so did ours. Im wondering is there a reason to put these values in? If there is how do we put them in? Do we change the R_MIN_DEFAULT, R_MAX_DEFAULT values, and by how much?

Thanks

nuke
  #2   Spotlight this post!  
Unread 06-03-2006, 15:20
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Camera Lighting Values At Regionals

Quote:
Originally Posted by nukem
At Trenton FIRST made an announcement that they had the lighting values for the arena, we got them but never put them in. We went to a number of other teams and asked them if they were using them and they all said no because their camera worked fine with the default values, so did ours. Im wondering is there a reason to put these values in? If there is how do we put them in? Do we change the R_MIN_DEFAULT, R_MAX_DEFAULT values, and by how much?

Thanks

nuke
We had our own camera values working at trenton, luckly. When we first heard they had RGB values for us, we were wondering how close the were to ours even though we already had the camera tracking the light fine... when we first got them there was a really high green value (like 156) and low red and blue values... (like 47) and i immediatly realized they were using RGB instead of YcRcB which is what the kevin watson camera code works with... so we told the pit admin and she said she would tell the guy who does it... the next day we find out they have YcRcB values, so we tried it out in our pits, and it immediatly was tracking every light in the stadium...

You should go into labview and take a picture of the green light in your pit, take those rgb values and staturation and enter them into "camera.h"

If you still cant get your values strait we'll be in Palmetto and nationals, come by our pit and ill share our values with you...
  #3   Spotlight this post!  
Unread 06-03-2006, 16:21
nukem nukem is offline
Registered User
#1676
 
Join Date: Jan 2005
Location: Hillsdale, NJ
Posts: 43
nukem is on a distinguished road
Re: Camera Lighting Values At Regionals

heh we'll be in Palmetto as well . Anyway whats the point of even going into labview when the current values work? If I want to change those values would I just edit these lines in camera.h to something else?

Code:
#define R_MIN_DEFAULT   85      // Rmin for call to Track_Color()^M
#define R_MAX_DEFAULT   115     // Rmax for call to Track_Color()^M
#define G_MIN_DEFAULT   15      // Gmin for call to Track_Color()^M
#define G_MAX_DEFAULT   17      // Gmax for call to Track_Color()^M
#define B_MIN_DEFAULT   100 // Bmin for call to Track_Color()^M
#define B_MAX_DEFAULT   145 // Bmax for call to Track_Color()^M
What would I change the default min and default max for each since Im getting an exact number?
  #4   Spotlight this post!  
Unread 06-03-2006, 16:39
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Camera Lighting Values At Regionals

Quote:
Originally Posted by bear24rw
...and i immediatly realized they were using RGB instead of YcRcB which is what the kevin watson camera code works with... so we told the pit admin and she said she would tell the guy who does it... the next day we find out they have YcRcB values, so we tried it out in our pits, and it immediatly was tracking every light in the stadium...
Ugh, do you know the name of the person you talked with?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 06-03-2006, 17:46
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Camera Lighting Values At Regionals

Quote:
Originally Posted by Kevin Watson
Ugh, do you know the name of the person you talked with?

-Kevin
It was a pit admin, she said she would forward it to the right person... i have no idea where the note went after i gave it to her.
  #6   Spotlight this post!  
Unread 06-03-2006, 18:47
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Camera Lighting Values At Regionals

At the PNW Regional the official values only had one value different and it was off by 1.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
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
Camera shows no love to drive motors anifinder Programming 4 13-02-2006 10:31
For anyone who doesn't get the camera code..... Jake M Programming 8 16-01-2006 18:56
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Unresponsive camera neilsonster Programming 9 17-02-2005 08:51
CMUcam II and competition lighting environments dlavery Programming 5 16-02-2005 02:07


All times are GMT -5. The time now is 05:13.

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