Go to Post But now we know what's inside Shaun's backpack! ...Don Rotolo's plastic egg. - MishraArtificer [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 01-14-2013, 11:25 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Full Court Target Detection

Has anyone been able to detect the targets at full court. If so how have you done it
  #2   Spotlight this post!  
Unread 01-15-2013, 06:48 AM
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,748
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: Full Court Target Detection

To use the lighting to detect targets at full court, you'll need to do several things.

You need to make sure you run the camera at a high enough resolution that the 4" wide lines are several pixels wide. 320x240 should do, but it may require 640x480. Get images and measure.

You'll need to calibrate the exposure on the camera to darken the normal scene more than normal. You may be able to do this just with the Brightness setting, but it may be useful to set it to auto, expose it to a bright light, and set it to hold. This will also help keep the colors from the LED ring stay saturated.

You'll need to use brighter LEDs or more of them. If this is the only place the targeting will be used, you can also use a flashlight or other lens system to narrow the beam and concentrate the light where you want it. The intensity of light drops of as distance squared, so the reflected light will be 1/4th as bright as full court as at mid-court.

Finally, you may find that the initial settings for particle size are set too low for full court detection. The .5% threshold is used to ignore particles that are smaller than a certain size. As the robot backs up, particles shrink, and at some point you need to lower the threshold to keep the recognition of the targets. .5% work out to about 400 pixels on a 320x240 image, so watch the particle area of the targets to see what range they are in.

Greg McKaskle
  #3   Spotlight this post!  
Unread 01-15-2013, 07:06 AM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Full Court Target Detection

Thank you for your help. We ran tests last night and it seems like we need a much brighter light. Do you have an suggestions on lights. Also have you tried color led vs white light
  #4   Spotlight this post!  
Unread 01-15-2013, 07:16 AM
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,748
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: Full Court Target Detection

I purchased an LED flashlight from home depot that has a red, blue, and white setting. It is certainly bright enough from full court because of its lens. It doesn't work well up close because the cone of light from the flashlight will only be a few feet across and won't illuminate the same area as the camera sees.

I've seen teams nest the LED rings one inside the other which will increase the brightness.

I've also used bicycle safety lights to see the targets full field. Again, they aren't dispersed enough to work well up close.

You most likely need to decide between the up-close and far-away lighting or combine several on the robot.

Greg McKaskle
  #5   Spotlight this post!  
Unread 01-15-2013, 07:30 AM
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Full Court Target Detection

If you are not testing with an LED ring around your camera lens, make sure the light source you are using is right next to the camera. The reflected light is extremely directional and even a few inches away from the camera can make a difference. We initially tested with a separate light about 10 inches to the side, then moved it right next to the camera and the difference was dramatic. Full field target recognition is crystal clear.
  #6   Spotlight this post!  
Unread 01-15-2013, 07:37 AM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Full Court Target Detection

We are using a light ring but I do not think it is bright enough. Do you do your vision processing on he cRIO?
  #7   Spotlight this post!  
Unread 01-15-2013, 07:46 AM
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Full Court Target Detection

yes, we are doing our vision processing on the cRIO. Are you using the NI Vision Assistant to test with? If not, you definitely want to.
If you stand directly behind your camera, while your LED ring is on, you should see the reflective tape light up quite a bit with your own eyes. If not, then try it with a flashlight for comparison. Maybe you need brighter LEDs.
  #8   Spotlight this post!  
Unread 01-15-2013, 07:50 AM
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,748
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: Full Court Target Detection

Good point about mounting near the camera. It is actually the angle between the source and sensor that matters. So for very distant targets, you can actually increase the distance between camera and light. The data sheet for the material will give a plot of reflected light intensity versus angle if you want to calculate how close they need to be.

The location of the processing doesn't impact the ability to detect, but it may impact how long it takes to process the image.

Greg McKaskle
  #9   Spotlight this post!  
Unread 01-15-2013, 07:56 AM
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Full Court Target Detection

Interesting point Greg. Our initial "poor quality" image this year was with the target just 10 feet away, but the light source probably around 10" away from the camera. Based on what you said, we probably would have had a perfectly acceptable image if we were 30 feet away instead. In any event, an LED light ring seems like the best way to go.
  #10   Spotlight this post!  
Unread 01-15-2013, 08:13 AM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Full Court Target Detection

Thank you for all your help. Do you know if there is a best color light. Also last year we ran into a lot of problems with interference from other light sources. An suggestions on how to prevent this
  #11   Spotlight this post!  
Unread 01-15-2013, 08:29 AM
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,748
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: Full Court Target Detection

I think the best light is the one that is the most unique, bright, and that the sensor is sensitive to.

Camera sensors tend to be more sensitive to reds and greens and less sensitive to blues. This is done to mirror how human eyes perceive color. So with LEDs of the same intensity, blue may not be reported as high as the others.

LEDs are based on photon emission from various circuits. When I was a kid, all LEDs were red, no other colors available. Today, there are all colors, but the cost and brightness per cost still differ.

All together, I'd say that the color probably doesn't matter much.

If you use HSL or HSV color thresholding and a relatively narrow hue filter, you should not have that many issues with other colors. But that is why the examples also do shape and size filtering. To interfere, something has to be the right color, right blob size, aspect ratio, it has to be pretty square and hollow.

Greg McKaskle
  #12   Spotlight this post!  
Unread 01-15-2013, 09:21 AM
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Full Court Target Detection

I think calibrating your camera, as Greg mentioned earlier, is very important too. Otherwise the colors can get washed out when you get in a brightly lit event.
We are experimenting with infrared lighting and an infrared filter on the camera. This is looking pretty promising so far as it excludes everything but infrared.
  #13   Spotlight this post!  
Unread 03-16-2013, 04:00 PM
fb39ca4 fb39ca4 is offline
Registered User
FRC #1899
 
Join Date: Jan 2012
Location: Bellevue, WA
Posts: 195
fb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to all
Re: Full Court Target Detection

Quote:
Originally Posted by Greg McKaskle View Post
All together, I'd say that the color probably doesn't matter much.
I'd say to go with green, because the goals are either surrounded with red or blue.
  #14   Spotlight this post!  
Unread 02-07-2013, 09:14 AM
twiggzee twiggzee is offline
Registered User
FRC #3502 (Octo-(PI)-Rates)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 55
twiggzee is an unknown quantity at this point
Re: Full Court Target Detection

Quote:
Originally Posted by Greg McKaskle View Post
I've seen teams nest the LED rings one inside the other which will increase the brightness.
I don't know if other teams are experiencing this as well but it seems to me that the retro-reflective tape in this year's game doesn't seem to reflect as bright as the one last year with the same green led ring light. has anybody tried adding another LED ring as Greg suggests here? did it improve brightness / vision results?
__________________
Wendy
Team 3502
  #15   Spotlight this post!  
Unread 03-13-2013, 06:55 AM
Johnny_5's Avatar
Johnny_5 Johnny_5 is offline
Whose cooking motor?
AKA: Isaac
FRC #3484 (Short Circuit)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Marysville Ohio
Posts: 148
Johnny_5 has a spectacular aura aboutJohnny_5 has a spectacular aura about
Quote:
Originally Posted by faust1706 View Post
1706's program for computer vision is able to function at well over 80 feet. Without the illuminators and just using the build in ir light on the kinect, it reaches a little under 60. last year we got to over 100 feet.
How are you doing this? What are the lighting conditions in your testing environment?
__________________
You fried..... another...... jaguar!

2011 CAMM CORI Robotics Invitational Runner Up Alliance
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


All times are GMT -5. The time now is 06:09 PM.

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