Go to Post Sweeeet swerve drive - Andy Baker [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
  #1   Spotlight this post!  
Unread 10-04-2016, 16:35
Thardro Thardro is offline
Registered User
AKA: Ethan
FRC #3042 (Cobalt Catalysts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Minnesota
Posts: 13
Thardro is an unknown quantity at this point
Dealing with bright lighting at competitions and vision

This weekend we competed at the North Star regional and will be progressing onwards to Championship. However, throughout the regional we struggled to get vision tracking on the tower working due to other lighting at the event reflecting off of the tower and conflicting with our green LEDs despite tweaking of our HSV filter. Currently we are running an HSV filter on the image from our camera and then comparing the area of each particle found by NIVision to the area of the convex hull to eliminate solid lights found in the background. Is there anything that we could do to improve our recognition, especially for under the lighting at Championship?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-04-2016, 17:06
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Dealing with bright lighting at competitions and vision

Your flaw is relying upon a HSV filter (and only a HSV filter) for identification of your target. That's like saying any orange car is a Dodge Charger. What are some ways you can verify that it is actually a target?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-04-2016, 17:17
Thardro Thardro is offline
Registered User
AKA: Ethan
FRC #3042 (Cobalt Catalysts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Minnesota
Posts: 13
Thardro is an unknown quantity at this point
Re: Dealing with bright lighting at competitions and vision

Quote:
Originally Posted by Ozuru View Post
Your flaw is relying upon a HSV filter (and only a HSV filter) for identification of your target. That's like saying any orange car is a Dodge Charger. What are some ways you can verify that it is actually a target?
As I said in my post, we are also comparing convex area to the area of the particle found by the filter. I also forgot to mention that we have tried checking how close the particle is to a trapezoid along with checking the aspect ratio. Our main problem is that even with our LED ring the lighting at the competition can overpower our LED, causing no green light to be visible in our images.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-04-2016, 17:24
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Dealing with bright lighting at competitions and vision

Based on past experience, I recommend using Purple. There's too much green/red/blue at competitions and around towers.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-04-2016, 10:09
electroken's Avatar
electroken electroken is offline
Electron Tamer
AKA: Ken Pontbriant
FRC #0230 (Gaelhawks)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Shelton, CT
Posts: 166
electroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the rough
Re: Dealing with bright lighting at competitions and vision

Quote:
Originally Posted by adciv View Post
Based on past experience, I recommend using Purple. There's too much green/red/blue at competitions and around towers.
Exactly why we're using orange.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-04-2016, 10:55
Owen Busler's Avatar
Owen Busler Owen Busler is offline
Build Captain
FRC #0303 (Test Team)
Team Role: Leadership
 
Join Date: Aug 2014
Rookie Year: 2014
Location: Bridgewater, NJ
Posts: 131
Owen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant future
Re: Dealing with bright lighting at competitions and vision

Team 303 had a similar issue at our competition last week. Im not convinced its the best way to solve this problem but we just added more and brighter green leds until it overpowered the reflection off the glass. In the end we had three of these rings concentric of each other.

https://www.superbrightleds.com/more...ghts-cob/1135/

They really are super bright, its pretty crazy. We also had a paper cup with white gaff tape on the inside to direct the green light. I couldn't find a good picture. Here is the best I could do:

https://goo.gl/photos/b7osRmTW6Vbs7uaZ9
__________________
2016: Deans List Semi-Finalist/MAR Mount Olive District Engineering Inspiration Award/Buckeye Regional Second Alliance Captain/MAR Montgomery District Event Imagery Award/MAR Championship Gracious Professionalism Award
2015: MAR Mount Olive District Chairman's Award/MAR North Brunswick District Winners/MAR Championship Finalists
2014: MAR Clifton District Chairman's Award/MAR Championship Regional Chairman's Award
Reply With Quote
  #7   Spotlight this post!  
Unread 13-04-2016, 08:07
Eric Scheuing's Avatar
Eric Scheuing Eric Scheuing is offline
Registered User
FRC #0999 (MechaRAMS)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Cheshire, CT
Posts: 370
Eric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud ofEric Scheuing has much to be proud of
Re: Dealing with bright lighting at competitions and vision

Quote:
Originally Posted by electroken View Post
Exactly why we're using orange.
It also happens to match your color scheme!
__________________




2005-2007: Bobcat Robotics 177
2015-20XX: MechaRAMS 999
Reply With Quote
  #8   Spotlight this post!  
Unread 13-04-2016, 09:12
bigbeezy's Avatar
bigbeezy bigbeezy is offline
Registered User
AKA: Bryan
FRC #2338 (Gear it Forward)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Oswego, IL
Posts: 310
bigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to behold
Send a message via AIM to bigbeezy
Re: Dealing with bright lighting at competitions and vision

We use IR LEDs, an Axis camera, and a strip of developed film to cover the lens. Works great. All the camera sees is the IR reflection. Midwest had a banner running right behind the goals that could have washed out some other methods. Our camera couldn't even see it.
__________________
Team 1592 Bionic Tigers -- Driver 2005-2008
Winner - Florida Regional 2005
Finalist - Newton Division 2007
Winner - Colorado Regional 2008
Florida State University - BS Mechanical Engineering
Team 2338 Gear it Forward -- Mentor/Drive Coach 2013-Present
Winner - Wisconsin Regional 2013
Chairman's Award - Midwest Regional 2015
Winner - Archimedes Sub-Division 2015
Chairman's Award - Midwest Regional 2016
Reply With Quote
  #9   Spotlight this post!  
Unread 13-04-2016, 09:31
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Re: Dealing with bright lighting at competitions and vision

I believe you are allowed access to the playing field on day zero for camera calibration. At least, that's what we're doing. We use the green light ring too and I've seen camera calibration be the difference between silver tape and green tape in the image. Changing the camera settings for the field should make a huge difference if your image filtering is working fine at your practice field/workshop/etc.
Reply With Quote
  #10   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
  #11   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,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: 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
  #12   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
  #13   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: 732
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
  #14   Spotlight this post!  
Unread 10-04-2016, 17:29
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Dealing with bright lighting at competitions and vision

Quote:
Originally Posted by Thardro View Post
Our main problem is that even with our LED ring the lighting at the competition can overpower our LED, causing no green light to be visible in our images.
Sounds like you need to lower the exposure and/or brightness on your camera or put a filter (some teams ave used sunglasses in a pinch) in front of it.
Reply With Quote
  #15   Spotlight this post!  
Unread 10-04-2016, 17:51
Thardro Thardro is offline
Registered User
AKA: Ethan
FRC #3042 (Cobalt Catalysts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Minnesota
Posts: 13
Thardro is an unknown quantity at this point
Re: Dealing with bright lighting at competitions and vision

Quote:
Originally Posted by RufflesRidge View Post
Sounds like you need to lower the exposure and/or brightness on your camera or put a filter (some teams ave used sunglasses in a pinch) in front of it.
Other than sunglasses, what would you recommend to use as a filter? Should it be a particular color?
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:33.

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