Go to Post Without programmers there would only be a robotic beauty contest. - mallot1243 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2012, 23:21
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Vision Processing Question

I've been using a ring light mounted on our camera and successfully can run the Rectangular Target Processing example. I integrated it into our code and it works like a charm. However, yesterday I worked in a room with different lighting. The camera was still able to view the rectangle but I had to re-calibrate (by clicking the color to process) in the image to get it to look for the correct rectangle.

What will happen at the regional competition? If the lighting is different, how will we be able to re-calibrate before getting on the field?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2012, 23:30
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: Vision Processing Question

Quote:
Originally Posted by CRLS97 View Post
What will happen at the regional competition? If the lighting is different, how will we be able to re-calibrate before getting on the field?
It's not unheard of for teams to be granted a short period sometime before qualification matches begin where they can place their robot on the field and do vision calibration.

If you plan well, you can capture some camera images during your first practice match or two for off-field use as calibration tests.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2012, 07:06
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Vision Processing Question

Check to see how your camera's white balance is set. If it is set to auto, then it runs an algorithm that samples the image from time to time and tries to return an image that is balanced. For security or photography, that is a fine feature, but it messes with the actual colors returned. You probably want to turn it off and stick with a given white balance setting, or even the Hold setting. Another thing that will impact color to a lesser degree is the exposure, the amount of light that the camera receives. You may also need to calibrate and hold that.

The most important thing to learn from this is that lighting is not a constant, and that you should test it in different locations and learn how the camera reacts. You will either find the camera settings that are consistent, or you will become good at calibrating quickly and accurately. Either will pay off at the event(s).

Greg McKaskle
Reply With Quote
Reply


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


All times are GMT -5. The time now is 22:28.

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