Go to Post Get your team together. Get your priorities straight. Get busy having fun. See you on the field. - EricH [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 15-01-2007, 12:58
Ethulin Ethulin is offline
Too many hats to count
AKA: Erik Thulin
FRC #0492 (Titan Robotics)
Team Role: Leadership
 
Join Date: Mar 2005
Rookie Year: 2003
Location: Seattle
Posts: 245
Ethulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud of
Send a message via AIM to Ethulin
Green light same color as overhead light

When ever we take a frame of the green light with our new CMU2 camera we have a problem. The green light appears as teh same pixel color as the overhead lights above (white).

I have attached a frame.

If anyone knows what is going on their help is much appreciated.
Attached Thumbnails
Click image for larger version

Name:	frame1.jpg
Views:	207
Size:	51.9 KB
ID:	4885  
__________________
2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist || 2006 Pacific Northwest Regional Chairman's
Stamp Scouting || Titan Robotics
  #2   Spotlight this post!  
Unread 15-01-2007, 13:11
something something is offline
Registered User
FRC #1438
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Cypress, CA
Posts: 10
something is an unknown quantity at this point
Re: Green light same color as overhead light

You probably just need to turn down the brightness
  #3   Spotlight this post!  
Unread 15-01-2007, 13:13
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Green light same color as overhead light

Use YCrCb instead of RGB Colors and turn off Automatic Gain Control.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #4   Spotlight this post!  
Unread 15-01-2007, 14:13
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,798
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: Green light same color as overhead light

You have accidently discovered that fluorescent light changes color at a 120Hz rate. Part of the time it is green and part of the time it is blue. Your eye integrates the color flicker into a single color since your eye can only see this motion at less than 24 times a second. Correcting for white balance or using some of the other techniques discussed in the documentation will help.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #5   Spotlight this post!  
Unread 16-01-2007, 13:14
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: Green light same color as overhead light

We have the same problem with our camera. We work in the autoshop so it hits the overhead shoplights and locks onto them. We fixed the problem artificially by making the tilt not go as high as the overhead lights
__________________
We build our bots with hacksaws
websites too: http://hacksaw.brush.googlepages.com
  #6   Spotlight this post!  
Unread 16-01-2007, 13:42
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Green light same color as overhead light

See this post and thread for a possible solution to try:
http://www.chiefdelphi.com/forums/sh...4&postcount=23
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


  #7   Spotlight this post!  
Unread 22-01-2007, 00:18
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: Green light same color as overhead light

Ethulin, that is exactly the kind of picture we got this morning after completing the build of our target light. This is with a brand new 2007 camera.

The target showed up as 240,240,240. So did the non-reflective calendar on the wall. So did the flourescent lights in the next room. We tried using the adjustments mentioned in the LabView manual but those did not help at all. We also tried adjusting several different values in LabView with no luck. I had to leave before we could spend more time on it.

I have searched several threads and have not found any actual working values posted.

EDIT: I just noticed that Kevin Watson's page contains a workbook with complete calibration procedures. Looks like I need to do some reading.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.

Last edited by Keith Watson : 22-01-2007 at 00:31. Reason: found good info
  #8   Spotlight this post!  
Unread 22-01-2007, 01:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Green light same color as overhead light

Quote:
Originally Posted by Keith Watson View Post
The target showed up as 240,240,240...
That's what it looks like in RGB values. Switch to the YCrCb color space and you'll find it looks very different from nearly everything else the camera might see.
  #9   Spotlight this post!  
Unread 22-01-2007, 03:04
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: Green light same color as overhead light

Quote:
Originally Posted by Keith Watson View Post
Ethulin, that is exactly the kind of picture we got this morning after completing the build of our target light. This is with a brand new 2007 camera.

The target showed up as 240,240,240. So did the non-reflective calendar on the wall. So did the flourescent lights in the next room. We tried using the adjustments mentioned in the LabView manual but those did not help at all. We also tried adjusting several different values in LabView with no luck. I had to leave before we could spend more time on it.

I have searched several threads and have not found any actual working values posted.

EDIT: I just noticed that Kevin Watson's page contains a workbook with complete calibration procedures. Looks like I need to do some reading.
You shouldn't need to do any calibration. Please see the FAQ for details: http://kevin.org/frc/camera.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #10   Spotlight this post!  
Unread 22-01-2007, 07:09
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Green light same color as overhead light

Well it was strange, but we did have to calibrate ours to get it to work. Not much though, but still...
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.
  #11   Spotlight this post!  
Unread 25-01-2007, 19:51
geeknerd99's Avatar
geeknerd99 geeknerd99 is offline
Fire Hazard
AKA: Daniel Lin
FRC #0401 (Hokie Guard)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Blacksburg, VA
Posts: 276
geeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud of
Send a message via AIM to geeknerd99 Send a message via MSN to geeknerd99 Send a message via Yahoo to geeknerd99
Re: Green light same color as overhead light

We've tried the default "bells and whistles" code both with and without calibration, and no such luck. We can achieve a constant tracking confidence in labview of over 200, but we transfer these settings through the camera menu, it can't find the target at all. Without any calibration, we can't find the light either, even though all the documentation says we should be able to.

We're in a fluorescent-lit shop, but the target is convieniently located in between some shop lights. We've tried Eldarion's tips with saturation AND darkening/diffusion filters, but these haven't worked when running through the RC either. They work great through Labview though.

If it helps at all, the lights are a full pink in Labview, and the light is barely different

I'm just about ready to give up on the camera... Too bad I need it for the AI-controlled driving we were planning on making...
__________________
  #12   Spotlight this post!  
Unread 27-01-2007, 11:45
abrockhoff abrockhoff is offline
Team 11 Programming Captain
AKA: Alex Brockhoff
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: New Jersey
Posts: 16
abrockhoff will become famous soon enough
Send a message via AIM to abrockhoff
Re: Green light same color as overhead light

The programmers on team 11 did change some of the values from default. We lowered the saturation and brightness, along with tweaking some other values.

Kevin's code did work, but when we started working in a room with bright flourescent lights the camera picked them up too.

Now we basically when we take a picture in labview, we see a black screen and nothing is highlighted other than the green light.

..and make sure you're in YCRCB not RGB.
  #13   Spotlight this post!  
Unread 06-02-2007, 09:14
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,537
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Green light same color as overhead light

We're out on the shop floor as well. Using Kevin's default camera code, and experiencing the exact same thing.

First, let me say "Thanks Kevin!!!!". Without your code, we never would have even touched the camera. (Or the encoders... or the gyro.....) Our lack of dedicated "controls" guys makes things very tough at times.

Anyway - our rack is made out of 2x4's and PVC. The overhead lights are sodiums. Our camera with the default code is picking up the green light, the reflections of the overhead lights off the 2x4's, and the overhead lights as well.

I'm going to spend sometime with labview to see if I can tweak it away from that. It is making our whole team very very nervous. We know the play areas are VERY brightly lit, and with the end plates on the racks being diamond plate - we're worried that we're going to get a lot of very nasty reflections when you're facing the target.
  #14   Spotlight this post!  
Unread 02-08-2007, 15:24
LVfan LVfan is offline
Registered User
no team
 
Join Date: Jul 2007
Location: US
Posts: 4
LVfan is an unknown quantity at this point
Re: Green light same color as overhead light

I agree you need to make sure to be in YCRCB and not RGB
__________________
Check out VI Roadshow
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 trouble,cant tell the green-light from regular white light Nimmy Programming 26 14-01-2007 14:53
KOP green light 987HighRoller Kit & Additional Hardware 1 13-07-2006 23:18
pic: Green Light Dermot_135 Extra Discussion 17 19-01-2006 18:02
Green light box demensions? pheNIX637 Kit & Additional Hardware 2 11-01-2006 15:14
Green Light Rachika Garcia Kit & Additional Hardware 1 10-01-2006 08:46


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

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