Go to Post "But from a real life standpoint, that looks like something the evil villains in a superhero movie would use to get around in" Reading the phrases "real life" and "evil villains in a superhero movie" in the same sentence makes me giggle. - Alan Anderson [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

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 13-04-2016, 09:41
mabster314's Avatar
mabster314 mabster314 is offline
Registered User
AKA: Max Haland
FRC #2175 (The Fighting Calculators)
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Afton, MN
Posts: 8
mabster314 is an unknown quantity at this point
Re: Dealing with bright lighting at competitions and vision

We use a green ring light and a single HSV filter, then use GRIP to find contours, filter out ones that are too small, and publish a report to a NetworkTable. The system has worked really well everywhere but Iowa, where the light was just too bright for our camera.

At Iowa, we were having similar problems. There were very large windows on either side of the field, and pointing a camera at the goals from our low bot was impossible without getting them into frame. Even with minimum exposure settings on the Axis camera, the windows were always the light it set the exposure based off of. We share a shop with 3130, who use the LifeCam, and they were having similar problems.

At North Star, we had no problems, and neither did 3130. We both used green ring lights, and they were bright enough to get a very good picture back from the camera. If you want, I can get you in touch with a member from 3130, as I'm not sure what they did with the LifeCam to set it up.
Reply With Quote
  #17   Spotlight this post!  
Unread 13-04-2016, 09:54
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: Dealing with bright lighting at competitions and vision

Thanks for posting the images.

The images you posted have virtually no green in them because the colors are being washed out due to the bright lights. The tape is essentially the same as the tower's gray colors. Despite what CSI shows like to claim, you can't fix everything by tapping computer keys or waving your hand in front of your face. Image processing is best done on images that are in focus, have good contrast, and don't contain lots of extraneous details. For color images, contrast also means good saturation (not washed out).

If you compare to the pictures that are part of the example code, you'll see that they are darker. This is affected by the exposure and brightness settings on the camera, and as others have mentioned, you can also use a Neutral Density filter (a gray plastic sheet) to block some of the light similar to sun glasses. This will increase saturation of color and allow the HSV filter to mask properly and not include bricks and mortar of the tower to be considered part of the target.

Also, the retroreflective material returns light emitted near the camera lens to the camera lens. So if you have mounted something else like a flashlight near the camera, you are diluting the green and washing it out.

Once you have a high contrast, saturated image, the task is far easier, and the rest of your code should work much better. If you need more help setting up your camera, post the camera setup code or a description of it.

Greg McKaskle
Reply With Quote
  #18   Spotlight this post!  
Unread 13-04-2016, 11:22
Greg Young Greg Young is offline
Science Enabler
FRC #0587 (Hedgehogs)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Hillsborough, NC
Posts: 65
Greg Young has a spectacular aura aboutGreg Young has a spectacular aura about
Re: Dealing with bright lighting at competitions and vision

We ended up using two pieces of polarizing filter material. Adjust the angle between the filters until you reduce the intensity enough to see the led color in the target.

This worked great on the practice field but on the field we shot high or low. The horizontal tracking was perfect but our ranging was off.

Greg
__________________
To invent, you need a good imagination and a pile of junk. -- T.A.Edison
My wife says I must need to work on the imagination thing.
Reply With Quote
  #19   Spotlight this post!  
Unread 13-04-2016, 11:35
MichaelBick MichaelBick is offline
Registered User
FRC #1836 (MilkenKnights)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 734
MichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant future
Re: Dealing with bright lighting at competitions and vision

We found these instructions for tuning our axis camera settings very useful
__________________
Team 1836 - The Milken Knights
2013 LA Regional Champions with 1717 and 973
2012 LA Regional Finalists with 294 and 973
To follow Team 1836 on Facebook, go to http://www.facebook.com/MilkenKnights
To go to our website, go to http://milkenknights.com/index.html
Reply With Quote
  #20   Spotlight this post!  
Unread 16-04-2016, 23:37
ajhammond123 ajhammond123 is offline
Registered User
FRC #5109
 
Join Date: Apr 2016
Location: Johns Creek, Georgia
Posts: 2
ajhammond123 is an unknown quantity at this point
Re: Dealing with bright lighting at competitions and vision

Definitely change your camera settings. After playing around with our axis camera settings using a model of the goal our images went from something like what you have to an image where everything except the brightest sunlight was too dark to be anything but black, and the reflection off of the tape is a distinct shade and color unique to the LEDs you use. You would have to re-adjust HSV values in your program after doing this, but it provides an easy method of reducing the number of potential targets in your image.

Last edited by ajhammond123 : 16-04-2016 at 23:42. Reason: image did not load correctly, removed it
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 04:25.

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