Go to Post Iteration is a necessary but not sufficient criteria to being a powerhouse team. - Chris is me [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 05-04-2007, 15:11
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Camera Oversaturation Issues?

I'm using Kevin Watsons streamlined code, and am running into massive oversaturation issues. The light from the Green target, along with the glare being reflected off the rack, are the same color, according to the CMUCam2 GUI.

I loaded in the configuration values given by Alan Federman at the SVR regionals, and it still seems to have issues. I've tried common solutions, such as putting a polarized lens over the cmucam. This does not seem to help. I have tried multiple rotatations of the Lens.
  #2   Spotlight this post!  
Unread 05-04-2007, 16:26
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,534
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: Camera Oversaturation Issues?

We never did manange to get the Java Applet to work with the Kevin settings. The labview application was much easier for us.

Are you sure you are using the correct settings with the GUI? Have you changed it to CYK or is it still in RGB?
  #3   Spotlight this post!  
Unread 05-04-2007, 18:02
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: Camera Oversaturation Issues?

Quote:
Originally Posted by 114Klutz View Post
I'm using Kevin Watsons streamlined code, and am running into massive oversaturation issues. The light from the Green target, along with the glare being reflected off the rack, are the same color, according to the CMUCam2 GUI.
The "oversaturated" value from the camera is 240:240:240. If you see that in the GUI, it's because you're using the RGB color space. Switch to YCrCb instead, and you'll see much better numbers.
  #4   Spotlight this post!  
Unread 06-04-2007, 19:58
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: Camera Oversaturation Issues?

Even after switching to ycbcr, the values for the green light and the glare seem to be exactly the same.
  #5   Spotlight this post!  
Unread 06-04-2007, 21:16
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: Camera Oversaturation Issues?

Quote:
Originally Posted by 114Klutz View Post
Even after switching to ycbcr, the values for the green light and the glare seem to be exactly the same.
In order to see what the values are using the LabView GUI tool, you need to
  1. change to the YCrCb color space
  2. send the new settings to the camera
  3. capture a frame

Leaving out any of these steps means that you'll still be viewing the RGB representation of the scene. If your camera is working properly, switching to YCrCb will result in a nearly uniform purple picture, with subtly darker bluish patches for light sources and bright reflections. The green target light might not look any different in the picture, but its values are definitely distinguishable from the other lights. You can turn on highlighting and/or use the "color tracking" window to prove it.
  #6   Spotlight this post!  
Unread 06-04-2007, 22:06
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Camera Oversaturation Issues?

I just created a new thread that discusses this exact problem. It is called "Free Sunglasses for your Camera".

http://www.chiefdelphi.com/forums/sh...ad.php?t=56654

I use neitral density filters you cna get at any theatrical supply house or photography store.

Good Luck
  #7   Spotlight this post!  
Unread 06-04-2007, 23:27
Vogel648 Vogel648 is offline
Student Programming Leader
FRC #0648 (QC Elite)
Team Role: Student
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Sherrard
Posts: 64
Vogel648 is on a distinguished road
Re: Camera Oversaturation Issues?

Can't you just decrease the brightness control? I know with the VI this is possible I am not sure what you are using though.
  #8   Spotlight this post!  
Unread 09-04-2007, 14:05
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: Camera Oversaturation Issues?

Quote:
Originally Posted by Alan Anderson View Post
In order to see what the values are using the LabView GUI tool, you need to
  1. change to the YCrCb color space
  2. send the new settings to the camera
  3. capture a frame

Leaving out any of these steps means that you'll still be viewing the RGB representation of the scene. If your camera is working properly, switching to YCrCb will result in a nearly uniform purple picture, with subtly darker bluish patches for light sources and bright reflections. The green target light might not look any different in the picture, but its values are definitely distinguishable from the other lights. You can turn on highlighting and/or use the "color tracking" window to prove it.
I did switch to YCbCr successfully. I meant, that even afterwards, the green light and the glare off the backgrounds were still exactly the same as each other.
  #9   Spotlight this post!  
Unread 09-04-2007, 14:29
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: Camera Oversaturation Issues?

Quote:
Originally Posted by 114Klutz View Post
I did switch to YCbCr successfully. I meant, that even afterwards, the green light and the glare off the backgrounds were still exactly the same as each other.
So you saw the purple with blue blotches? That's steps 1 and 3, but I'm still concerned that you might have missed step 2. What source did you use for the camera settings? The defaults in the LabView program are all appropriate for RGB, but they're far from the values used in the code provided by Kevin Watson.

What color values are you getting for the target light and reflections? Are they anything like the range Kevin's code is looking for?
  #10   Spotlight this post!  
Unread 09-04-2007, 14:52
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: Camera Oversaturation Issues?

The entire thing actually looked greenish to me. But yes, I am familiar with how YCbCr looks like.

I think I will be following the idea of using multiple sunglasses.
  #11   Spotlight this post!  
Unread 09-04-2007, 16:15
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: Camera Oversaturation Issues?

Quote:
Originally Posted by 114Klutz View Post
The entire thing actually looked greenish to me...
I've never heard anyone describe it as greenish before. With the appropriate settings, it's unmistakably purple. It sounds like either your camera is malfunctioning or something was severely misconfigured.
  #12   Spotlight this post!  
Unread 19-04-2007, 17:47
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: Camera Oversaturation Issues?

Perhaps the program I was using to display the camera output puts puts chroma into a different channel then labview - I was using the Java GUI.
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 Issues RedOctober45 Programming 5 08-02-2007 15:59
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56
Camera Issues -- So close yet so far. team66t-money Programming 34 04-05-2005 23:17
Camera issues Todd Programming 0 16-02-2005 19:06


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

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