Go to Post I'm sure there aren't a bunch of rule makers sitting in a board room discussing "What rule can we change now to mess with the teams' heads?" Lets all just sit back and enjoy the regionals! - Rick [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-01-2014, 12:46
Dadwolo4 Dadwolo4 is offline
Registered User
FRC #0302
 
Join Date: Jan 2013
Location: Lake Orion Mi
Posts: 1
Dadwolo4 is an unknown quantity at this point
Re: Vision Tracking the Hot Goal LEDs

Does anyone know the wavelength color of the hot goal LED?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2014, 17:17
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Vision Tracking the Hot Goal LEDs

Quote:
Originally Posted by Dadwolo4 View Post
Does anyone know the wavelength color of the hot goal LED?
Adding to this question: Does anyone have any concerns with the variation in light affecting seeing the leds? I personally don't think slight lighting variations should make much of a difference, but I am interested in other people's thoughts on the matter.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2014, 06:41
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,751
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 Tracking the Hot Goal LEDs

What you really care about is what color the camera sees when it captures the LEDs, not what color the LEDs produce.

If you had a perfectly calibrated camera, knowing the LED wavelength would be all you'd need. But we don't have perfect cameras or perfect eyes.

One of the first things the cameras do is to combine the component light values into a colored image assuming a specified white balance. This is there to adjust for different ambient lighting such as outdoor sunlight versus indoor fluorescent. But this shifts all colors in the image. It doesn't know what pixels represent an LED producing light source and the pixels that are reflecting ambient light. The camera offers different white balance settings including an auto setting that analyzes the image and calculates the most likely type of ambient lighting. But all of these shift the colors, breaking simple math comparison approaches.

I think the first challenge is to determine if you can even get the camera to see the colors. Bright light sources saturate the sensor, resulting in a white spot, not a colored spot. Perhaps you can simply use the monochrome spots as a template for image recognition?

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2014, 09:31
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

I personally wouldn't try to see the color specifically but rather the brightness. You could align your robot left or right of the center of the goal, but in a position that the camera can see both the left and right sides of the I. With some pretty simple brightness filters, you should be able to detect if your side or the other side is hotter.

If you are only using this to detect hotness, then I would also align the camera so the target is in the top portion of your view, that way you can filter out the lower section. Given you have a line for alignment you may even want to filter out some of the area in the middle of the goal to avoid noise from the crowd etc.

If you're using rgb, you could use a custom threshold like minimum of rgb, or if your camera sees the yellow you could use a min average threshold of RG.

Then split you screen into three columns and calculate the average brightness of the three. If you're in the hot side two of the three should show up as hot, if you're on the cold side, only one of the three should show up hot.
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2014, 09:41
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

Quote:
Originally Posted by lineskier View Post
I personally wouldn't try to see the color specifically but rather the brightness. You could align your robot left or right of the center of the goal, but in a position that the camera can see both the left and right sides of the I. With some pretty simple brightness filters, you should be able to detect if your side or the other side is hotter.
Be careful with this approach, though. Just make sure you find a way to filter out the field lighting, which will definitely be brighter than your shop and could confuse your system.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2014, 09:43
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,748
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Vision Tracking the Hot Goal LEDs

What are teams using to practice with? Any particular led strips people are putting on practice goals?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2014, 09:47
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

Quote:
Originally Posted by rsisk View Post
What are teams using to practice with? Any particular led strips people are putting on practice goals?
I found these LEDs that seem to match closely the philips ones on the field.

The philips ones are spaced 3 or 4 inches apart, couldn't figure out exactly which strip they were using.

yellow:
http://www.superbrightleds.com/morei...-mcd/362/1309/

blue:
http://www.superbrightleds.com/morei...-mcd/359/1306/

red:
http://www.superbrightleds.com/morei...-mcd/361/1308/.


I also second rsisk's statement. The light's you use really won't make much a difference, because you will need to have a pretty good filter in place that works in many different lighting environments to minimize calibration necessary on the field (I'm guessing the practice field won't have this lighting).

Also remember, you have a 50/50 chance at hitting the hot goal so it's only worth on average ~2.5 points, so take that into account when you prioritize your programming tasks.
__________________
"Never let your schooling interfere with your education" -Mark Twain

Last edited by mwtidd : 16-01-2014 at 12:27.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-01-2014, 14:41
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,517
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: Vision Tracking the Hot Goal LEDs

Tightening up your color constraints too much is a mistake. Ambient lighting definitely will affect your vision.

In addition, don't rely on just seeing one shape.

The most accurate vision systems will be those that combine the two approaches. They will look for the correctly color using fairly wide open constraints, look for shapes with fairly wide open constraints, then check the shapes position and verify their colors.

In other words, your vision system should check that what you see is around the right color, about the right shape, and has approximately the correct spacial relationship to the other target (vertical versus horizontal). This will result in a much higher % chance of you identifying the correct object and state.
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 09:51.

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