Go to Post Angry Teams will not get the field going any quicker trust me on that! - mtaman02 [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 13-01-2005, 20:21
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
Camera Problems

Alright, I'm about to go insane, I really need help. I'm trying to calibrate the camera, per the instructions provided, and I think I've followed them as exactly as I can, but I can't get the camera to see anything by yellow when calibrating for that color. Here's a picture of the red target:



Do you see anything in that image that would make it not be able to find the obvious red target? Its lined up, and the camera 3 ft off the ground as the instructions say. I'm completely out of ideas, can anyone help?
__________________
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
  #2   Spotlight this post!  
Unread 13-01-2005, 20:54
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,573
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Camera Problems

The lighting seems very poor. Have you tried it in a more well lit area?
  #3   Spotlight this post!  
Unread 13-01-2005, 21:19
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Camera Problems

Quote:
Originally Posted by Joe Ross
The lighting seems very poor. Have you tried it in a more well lit area?
I imagine it could be being confused by the strong backlighting.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #4   Spotlight this post!  
Unread 13-01-2005, 21:34
CJO's Avatar
CJO CJO is offline
Emeritus Pain in the $@#$@#$@#
AKA: Christopher J. O'Connell
None #1097 (Site 3 Engineering)
Team Role: Alumni
 
Join Date: Feb 2003
Location: Latrobe (over the rainbow), CA
Posts: 217
CJO will become famous soon enoughCJO will become famous soon enough
Re: Camera Problems

Yeah, the sheets in the background are a tempting white target.
__________________
Team 1097 -- Site 3 Engineering
~~~~~~~~~~~~~~~~~~~~
2003 Sacramento Rookie All Star
2003 Silicon Valley Rookie All Star
2004 Sacramento Engineering Inspiration Award
2004 Sacramento Visualization Award
2004 Outstanding Volunteer Award (G. Glasser)
2004 Silicon Valley Sportsmanship Award
2004 National Visualization Runner Up
2004 Cal Games Finalist
2005 Sacramento Sportsmanship Award
2005 Sacramento #1 seed
2005 Sacramento Finalist

2005 Silicon Valley Sportsmanship Award
2005 Silicon Valley #1 Seed
2005 Silicon Valley Finalist

  #5   Spotlight this post!  
Unread 13-01-2005, 23:38
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: Camera Problems

Well, the sheets are out of the target mostly I think, but ya, tomorrow we'll try covering those cabinets with something else (they are orange, and show up the same color as the targer on the camera). As far as lighting, its just in like a classroom kind of thing, I don't really know what else to do for that, we're gonna try some other things too. I'll let you know if I get it, assuming my head doesn't go through a wall.... this has been 2 days straight of this.............

And just curious, when we hit a color, we get the error "Tracking packet failed" in the little statusbar window of the GUI, where you see the messages about the camera, is this normal? Or could this be a part of the problem, I kind of forgot to mention 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
  #6   Spotlight this post!  
Unread 13-01-2005, 23:56
rappo's Avatar
rappo rappo is offline
Drag and drop that for loop!
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Glendale, California
Posts: 49
rappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the rough
Re: Camera Problems

you might also want to use a more "rare" color. like, something bright and neon-esque. we used a very bright shade of blue (like on photoshop it would have great saturation, if that helps you imagine it better) and it found it just fine even while other team members standing around with the colors on their shirts and what not.
__________________
Team 696 Circuit Breakers
2006 LA Regional - Radio Shack Innovation in Control Award
  #7   Spotlight this post!  
Unread 14-01-2005, 00:07
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Camera Problems

Quote:
Originally Posted by pickle
Well, the sheets are out of the target mostly I think, but ya, tomorrow we'll try covering those cabinets with something else (they are orange, and show up the same color as the targer on the camera). As far as lighting, its just in like a classroom kind of thing, I don't really know what else to do for that, we're gonna try some other things too. I'll let you know if I get it, assuming my head doesn't go through a wall.... this has been 2 days straight of this.............

And just curious, when we hit a color, we get the error "Tracking packet failed" in the little statusbar window of the GUI, where you see the messages about the camera, is this normal? Or could this be a part of the problem, I kind of forgot to mention that...
Jeremy,

The instructions in START HERE are very specific. You must be on a dark floor resembling the field that FIRST will be using. In their example, there is no bright background. Neither should you have a bright background...
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #8   Spotlight this post!  
Unread 14-01-2005, 00:59
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: Camera Problems

Quote:
Originally Posted by pickle
Well, the sheets are out of the target mostly I think, but ya, tomorrow we'll try covering those cabinets with something else (they are orange, and show up the same color as the targer on the camera). As far as lighting, its just in like a classroom kind of thing, I don't really know what else to do for that, we're gonna try some other things too. I'll let you know if I get it, assuming my head doesn't go through a wall.... this has been 2 days straight of this.............

And just curious, when we hit a color, we get the error "Tracking packet failed" in the little statusbar window of the GUI, where you see the messages about the camera, is this normal? Or could this be a part of the problem, I kind of forgot to mention that...

We just fired up the camera tonight and basically got the same "Tracking packet failed". After reading the manual on the commands for the camera, I went into Hyperterminal and setup the camera to track all colors with no problem. I'm convinced the GUI screws up on certain PCs, probably the serial driver. I'm running a P4m @ 2.8Ghz and can't get it to run. Here's what I did to prove the camera tracked OK.

1. Setup camera playing field. Enter GUI and grab a frame.
2. Then hover the mouse over the triangle and left click on the field's triange on the screen. If the triangle looks highlighted ok, then record the RGB values that are shown.
3. Close the GUI and open Hyperterminal ( keep power on the camera). setup for COM1 @ 115200, 8, n, 1
4. Type <ret> and make sure you get an ACK
4. Type SM 15 <ret> to enable auto tracking of servos
5. Type TC Rmin Rmax Gmin Gmax Bmin Bmax.. where
Rmin = Your R value -25
Rmax = Your R value +25
Gmin = Your G value -25
Gmax = Your G value +25
Bmin = Your B value -25
Bmax = Your B value +25

Your camera should now be tracking.... At least now I know the GUI is screwed up and I'm not going nuts

Last edited by Phil Roth : 14-01-2005 at 01:01.
  #9   Spotlight this post!  
Unread 14-01-2005, 01:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,573
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Camera Problems

The white sheets are reflecting a lot of light. Even if they are "out of target" they appear to be messing up the lighting balance.
  #10   Spotlight this post!  
Unread 14-01-2005, 09:36
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Camera Problems

Quote:
Originally Posted by pickle
Alright, I'm about to go insane, I really need help. I'm trying to calibrate the camera, per the instructions provided, and I think I've followed them as exactly as I can, but I can't get the camera to see anything by yellow when calibrating for that color. Here's a picture of the red target:



Do you see anything in that image that would make it not be able to find the obvious red target? Its lined up, and the camera 3 ft off the ground as the instructions say. I'm completely out of ideas, can anyone help?
1) Lighting is extremely important as others have stated. In your picture, the automatic exposure control is adjusting based on the brightest spot in your frame, which are the white sheets. I'm guessing they are very bright (reflecting the lights in the room), and so the camera is under exposing the important parts of the frame (the red triangle).

2) If you have no control over lighting, the next best thing is to skip the calibration process altogether, and manually enter numbers in the text fields beside the calibrate buttons. If you want some numbers to start with:

Yellow = 36
Green = 44
Red = 90

we got these values working in a large highschool cafeteria with fluorescent lights covered with dingy yellow covers.

Once you enter these values, click on the "Color" tab, then click Track [Color], and see how it looks. If you only see small patches of your triangle, increase the number for that color. If you're picking up areas of color from the surrounding area, then drop it down.

Good luck!

-SlimBoJones...
  #11   Spotlight this post!  
Unread 14-01-2005, 11:52
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: Camera Problems

THanks, we're gonna get more black paper (the place that had it was closed last night) and use that to cover some places, and see how that works out, otherwise, I'll try Phil's code. Thanks alot
__________________
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
  #12   Spotlight this post!  
Unread 14-01-2005, 21:51
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Camera Problems

Remember in this camera system, the color white is composed of mostly green (59%)some red(31%) and a little blue(11%). If you were to look at the histogram output, you would see that the sheets are producing as much or more red output than the triangle. In addition, there is so much light reflected that the camera is in overload. Try shutting off the lights over the sheets and things should improve.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #13   Spotlight this post!  
Unread 14-01-2005, 23:12
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
Smile Re: Camera Problems

Quote:
Originally Posted by pickle
Alright, I'm about to go insane, I really need help. I'm trying to calibrate the camera, per the instructions provided, and I think I've followed them as exactly as I can, but I can't get the camera to see anything by yellow when calibrating for that color. Here's a picture of the red target:



Do you see anything in that image that would make it not be able to find the obvious red target? Its lined up, and the camera 3 ft off the ground as the instructions say. I'm completely out of ideas, can anyone help?
Pickle,
I set up a "test bed' with ideal conditions, a black sheet and mini triangles placed about 3 feet away from the camera to really get a good understanding of what's going on and how all the camera parameters work. The GUI stores "tuned" RGB values for FIRST's selected colors in config.txt in the .java folder. You might want to just highlight the triangle in the frame grab window and make sure the RGB values displayed next to the grab fall within range of the parameters for that particular color in config.txt. If not, your colors and/or lighting may be off. You might want to alter the values in config.txt to get it going.

After getting a firm understanding on how this thing finally works and how to tune it, I'm really concerned about how well everything will work as a "system" on the field dealing with variations in lighting and the field. I wonder if FIRST will allow us to read the mean values off the real targets before the competitions. I can see it now.....tee shirts with 120 255 0 20 25 300.... written all over them.

Good Luck. Let me know if I can help.

Last edited by Phil Roth : 14-01-2005 at 23:15.
  #14   Spotlight this post!  
Unread 15-01-2005, 03:28
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: Camera Problems

Well, we covered the white with some black sheets, and then we did some other stuff to add more dark, and we got 3 values, but it seems that that made things worse, it couldn't track any colors with them.... Before calibration, we used hyper terminal to get the servo to follow green, and after, it wouldn't follow anything. I'm really not liking this camera. I'm just going to assume that treacking green will be the most useful thing, since the vision tetras are green. Otherwise, I'll set up something to get it all working using the manual method suggested earlier. Consider that image obsolete, there is no more glare, and no more black in the image. When we select the red triangle, its the only thing within the threshhold of 25 that gets selected in the image. *shrugs* Same story with green and yellow, however, I know green works, because I got it to track it. So ya
__________________
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
  #15   Spotlight this post!  
Unread 15-01-2005, 03:55
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Camera Problems

I am thinking that at the competition couldnt they just post the numbers for all the teams? Or does the effect of the numbers vary between cameras?
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
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
Only 1 camera allowed? Joe Ross Control System 4 17-01-2005 23:29
Live video with Kit Camera BobcatProgramer Electrical 10 11-01-2005 10:43
Joystick problems archiver 2001 3 24-06-2002 02:40


All times are GMT -5. The time now is 20:49.

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