Go to Post I'd love to see a simple, robust system that connects quickly and dependably. - Andy Baker [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 05-01-2014, 17:40
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Vision Tracking the Hot Goal LEDs

Rather than tracking the horizontal reflective tape to determine if a goal is hot, could you track the leds around the goal and determine if they are lit or not?

Would this be feasible in NI vision using an axis camera? Would a ringlight be needed in this case?

Not looking to get the distance and do advanced calculations from this tracking system. Simply determining if the goal is hot or not from the status of the led lights around the goals.

Thanks in advance!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2014, 17:54
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 864
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

shouldn't need a ring light, but the reflective tape (with a ring light) will be easier to detect.

Keep in mind the hot goal is yellow (not team colored like the animation), and switches sides after 5 seconds.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2014, 18:00
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Vision Tracking the Hot Goal LEDs

Quote:
Originally Posted by engunneer View Post
shouldn't need a ring light, but the reflective tape (with a ring light) will be easier to detect.

Keep in mind the hot goal is yellow (not team colored like the animation), and switches sides after 5 seconds.
I'm just curious as to if it was possible to have your camera take a picture at the very start of auton. With that image, look at the led lights and determine if they shine yellow or not. If they do, proceed to shooting sequence. If not, wait 5 seconds and then go.

Possible?
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2014, 18:03
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 864
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

absolutely possible.

The reflective target will be easier to see only because the contrast to the surroundings will be higher. The yellow lights will be detectable, but your field of view has to be wider (if you are looking for the whole ring), or you need to think about how to filter the image for "only yellow" with some fudge room. and detect the two horizontal lines made by the lights.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #5   Spotlight this post!  
Unread 05-01-2014, 19:21
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Vision Tracking the Hot Goal LEDs

Quote:
Originally Posted by engunneer View Post
absolutely possible.

The reflective target will be easier to see only because the contrast to the surroundings will be higher. The yellow lights will be detectable, but your field of view has to be wider (if you are looking for the whole ring), or you need to think about how to filter the image for "only yellow" with some fudge room. and detect the two horizontal lines made by the lights.
I'll take that stuff into consideration. Thanks
Reply With Quote
  #6   Spotlight this post!  
Unread 05-01-2014, 23:11
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Vision Tracking the Hot Goal LEDs

My overall experience with the vision system is that looking for individual colors can be extremely finicky, depending on the lighting on the field and whether your robot feels helpful on a given day. Also, it can be hard to correctly analyze an area of color that does not have a well-defined shape.

Bright green LED's tend to be picked up well under most lighting circumstances, though - our team has successfully used a bright green ring light the last couple years. I would recommend using the dynamic vision targets with a bright light of some sort.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-01-2014, 22:12
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 Tracking the Hot Goal LEDs

Since the LEDs are very bright and very small, the auto-exposure algorithms tend to overlook them and collect too much light in those areas. The result is that the LEDs that look yellow to your eyes will appear white on the computer screen. You can adjust the exposure by lowering the brightness parameter or manually calibrating the exposure. You may then be able to see the yellow LEDs using the camera, but at that point the rest of the image will be quite dark.

If you can set the exposure low enough, you can process it based on the color of yellow detected by the camera. Another approach is to process it using the brightness and ignore color.

As mentioned, this is certainly a valid way to look for the target. It doesn't require a ring light, but since you don't provide the light, you will likely find it to be less robust. But by all means, experiment.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 07-01-2014, 14:39
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

Quote:
Originally Posted by Greg McKaskle View Post
Since the LEDs are very bright and very small, the auto-exposure algorithms tend to overlook them and collect too much light in those areas. The result is that the LEDs that look yellow to your eyes will appear white on the computer screen. You can adjust the exposure by lowering the brightness parameter or manually calibrating the exposure. You may then be able to see the yellow LEDs using the camera, but at that point the rest of the image will be quite dark.
There are some pictures posted here with both the vision target lit up and the LEDs on here: http://firstforge.wpi.edu/sf/frs/do/..._vision_images
Reply With Quote
  #9   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
  #10   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
  #11   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,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 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
  #12   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
  #13   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,114
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
  #14   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,749
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
  #15   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
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 21:00.

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