View Single Post
  #4   Spotlight this post!  
Unread 21-03-2012, 04:12
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: vision target sample 2012 help!

We use green LEDs too. But the value depends on your camera brightness setting and your environment lighting. We set the brightness to 20 and our values are (0, 50, 50, 200, 25, 125). It may be more useful to tell you how our lead programmer determined these values. He said he captured the camera image of the target to a jpg file and load the file into mspaint.exe (a handy tool came with Windows 7). On the top ribbon, you will find a eye-dropper icon. Click that icon and use that to click the color you are interest in. Then click the "Edit color" icon on the right end of the ribbon. This will open a dialog and show you the RGB values of the color. He found the color actually has some blue in it. So he widened the green range and also blue (not as big as green though) and minimize red. We found the values do very well for us.

BTW, you are supposed to be able to use the National Instrument Vision Assistant tool that came with the credit card flash drive to do similar things but we lost the card so mspaint does just fine for us.
__________________
Reply With Quote