Go to Post I think they get nutrition from chain greese. - Lucid [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 07-04-2016, 13:01
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 228
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Vision Problems Under Regional Lights[GRIP]

Hi,

We are having major problems figuring out how to calibrate our vision under the bright regional lights. We are using GRIP for the processing. My main question is what settings have you found to overcome the lights on the camera and in GRIP?

Here are the images of GRIP and the mjpg-streamer: http://imgur.com/a/FO67A

P.S. If you are at North Star Regional and know an answer, let me know.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 07-04-2016, 13:24
Brandon Holley's Avatar
Brandon Holley Brandon Holley is offline
Chase perfection. Catch excellence.
AKA: Let's bring CD back to the way it used to be
FRC #0125 (NU-TRONs, Team #11 Alumni (GO MORT))
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Boston, MA
Posts: 2,593
Brandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond reputeBrandon Holley has a reputation beyond repute
Send a message via AIM to Brandon Holley
Re: Vision Problems Under Regional Lights[GRIP]

What camera are you using?

-Brando
__________________
MORT (Team 11) '01-'05 :
-2005 New Jersey Regional Chairman's Award Winners
-2013 MORT Hall of Fame Inductee

NUTRONs (Team 125) '05-???
2007 Boston Regional Winners
2008 & 2009 Boston Regional Driving Tomorrow's Technology Award
2010 Boston Regional Creativity Award
2011 Bayou Regional Finalists, Innovation in Control Award, Boston Regional Finalists, Industrial Design Award
2012 New York City Regional Winners, Boston Regional Finalists, IRI Mentor of the Year
2013 Orlando Regional Finalists, Industrial Design Award, Boston Regional Winners, Pine Tree Regional Finalists
2014 Rhode Island District Winners, Excellence in Engineering Award, Northeastern University District Winners, Industrial Design Award, Pine Tree District Chairman's Award, Pine Tree District Winners
2015 South Florida Regional Chairman's Award, NU District Winners, NEDCMP Industrial Design Award, Hopper Division Finalists, Hopper/Newton Gracious Professionalism Award
Reply With Quote
  #3   Spotlight this post!  
Unread 07-04-2016, 13:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by team-4480 View Post
...what settings have you found to overcome the lights on the camera and in GRIP?
Several teams put sunglasses (dark and/or colored filters) on the camera.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-04-2016, 13:42
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 228
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by Brandon Holley View Post
What camera are you using?

-Brando
Logitech C270
Reply With Quote
  #5   Spotlight this post!  
Unread 07-04-2016, 14:20
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,064
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by team-4480 View Post
Hi,

We are having major problems figuring out how to calibrate our vision under the bright regional lights. We are using GRIP for the processing. My main question is what settings have you found to overcome the lights on the camera and in GRIP?

Here are the images of GRIP and the mjpg-streamer: http://imgur.com/a/FO67A

P.S. If you are at North Star Regional and know an answer, let me know.

Thanks!
Try reducing your acceptable Hues. Right now you're pretty much saying "any color" unless you need any color.
__________________




.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-04-2016, 14:44
GreyingJay GreyingJay is offline
Robonut
AKA: Mr. Lam
FRC #2706 (Merge Robotics)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ottawa, Canada
Posts: 782
GreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond repute
Re: Vision Problems Under Regional Lights[GRIP]

We had this issue too. In the end we decided to forego the vision based targeting and changed our code to use absolute gyro values (0 being the direction perfectly perpendicular to the opponent alliance wall). With some tweaking we converged on a low goal autonomous routine that eventually worked almost all the time.

We noticed that the successful teams at our regional (1241 in particular) used a much brighter ring light than what we got through FIRST Choice.

Other things we would have tried if we had time include "sunglasses" in various colours including green tint, doubling up our ring lights, looking for the red or blue LED strength indicators, etc.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-04-2016, 15:21
cmwilson13's Avatar
cmwilson13 cmwilson13 is offline
Registered User
AKA: Christopher Wilson
no team
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: buford GA
Posts: 91
cmwilson13 has a spectacular aura aboutcmwilson13 has a spectacular aura aboutcmwilson13 has a spectacular aura about
Re: Vision Problems Under Regional Lights[GRIP]

offset the led ring so one side is a close as possible to center without occluding vision. it will make a huge difference.
__________________
"Like the WWF, but for smart people." -George HW Bush

Team Member 1771 2008-2009
Team Mentor 1771 2010-2012 2014-2016
Team Mentor 4509 2013-2014
Team Mentor 3998 2013-2014
Reply With Quote
  #8   Spotlight this post!  
Unread 07-04-2016, 15:24
vScourge's Avatar
vScourge vScourge is offline
Videogame Developer
AKA: Adam Pletcher
FRC #4096 (Ctrl-Z)
Team Role: Coach
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Champaign, IL
Posts: 39
vScourge is on a distinguished road
Re: Vision Problems Under Regional Lights[GRIP]

Are you able to throttle down the exposure level on that camera? In our experience, if you can't do that then you won't be able to get good green/blue/whatever color values off the reflective tape from your LED ring (assuming you use one). Without exposure control the tape blooms out to a near-white value, making it very difficult to isolate that separate from the field lights.

We use a Logitech C920 on a RPi2, and had to dig up an old command-line program that supports fiddling with the exposure settings. The consumer-grade utility Logitech ships these days (the Windows one with the GUI) only works for that session, and only on Windows of course.

Once we had exposure under control it was pretty easy to get reliable target isolation using GRIP. The sunglasses tip is interesting, hadn't thought of that.
Reply With Quote
  #9   Spotlight this post!  
Unread 07-04-2016, 17:24
davidaustin davidaustin is offline
Registered User
FRC #4003 (FRC 4003 TriSonics / FTC 7023 HexaSonics)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2008
Location: Allendale, Michigan
Posts: 20
davidaustin is an unknown quantity at this point
Re: Vision Problems Under Regional Lights[GRIP]

I'll second vScourge: setting the exposure manually is key. There is a lot of variability when using the auto exposure mode, which makes it difficult to isolate the appropriate HSV ranges. We set our exposure to some very small value, like 5, and started seeing very reliable results.

We use a Logitech C615 and the NI Vision libraries since we weren't able to set the exposure using opencv.
__________________



Reply With Quote
  #10   Spotlight this post!  
Unread 08-04-2016, 07:37
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 228
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by Andrew Schreiber View Post
Try reducing your acceptable Hues. Right now you're pretty much saying "any color" unless you need any color.
I want to contain those values, but without the full range, the contour I want doesn't show up.
Reply With Quote
  #11   Spotlight this post!  
Unread 08-04-2016, 08:13
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,064
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by team-4480 View Post
I want to contain those values, but without the full range, the contour I want doesn't show up.
See comments about manual exposure.

Another option would be to, on the rio, check the aspect ratios of the contours. But that'll screw up if you are not straight on. Really the exposure and proper hsv bands are the best way to eliminate gunk.
__________________




.
Reply With Quote
  #12   Spotlight this post!  
Unread 08-04-2016, 08:15
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
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: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by team-4480 View Post
I want to contain those values, but without the full range, the contour I want doesn't show up.
That means you are either using a white light or your image is overexposed. Turning down the exposure or using a filter/sunglasses should help if you are using a colored light. Then you can dial in the hue to knock out the venue lighting.
Reply With Quote
  #13   Spotlight this post!  
Unread 08-04-2016, 08:32
pilleya's Avatar
pilleya pilleya is online now
Elec+Mech
AKA: Alastair Pilley
FRC #4613 (Barker Redbacks)
Team Role: Mechanical
 
Join Date: May 2015
Rookie Year: 2013
Location: Sydney, Australia
Posts: 454
pilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond reputepilleya has a reputation beyond repute
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by GreyingJay View Post
We noticed that the successful teams at our regional (1241 in particular) used a much brighter ring light than what we got through FIRST Choice.

Other things we would have tried if we had time include "sunglasses" in various colours including green tint, doubling up our ring lights, looking for the red or blue LED strength indicators, etc.
We found the FIRST Choice led ring to be a little dim for our liking, we made a custom led ring with 24 high brightness 5mm leds on a vero board, because of the brightness we are powering it off a spike so we can turn it on and off to ensure it doesn't interfere with/annoy the drivers/operators on the opposing alliance as it is quite bright.

Can't drive if got no eyes
Reply With Quote
  #14   Spotlight this post!  
Unread 08-04-2016, 09:04
Background Background is offline
I was there, you just didn't notice
AKA: Gavin
FRC #2067 (Apple pi)
Team Role: Operator
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Guilford
Posts: 6
Background is an unknown quantity at this point
Re: Vision Problems Under Regional Lights[GRIP]

Though we ended up not using GRIP, when testing with it we had good results using an RGB filter and a hsv filter with no hue limits put into a bitwise_and, partly because it was easier to adjust than the RGB than the hue. We were also able to lower the maximum red value and cut out almost all light except for the goal.
Reply With Quote
  #15   Spotlight this post!  
Unread 08-04-2016, 09:35
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 361
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Vision Problems Under Regional Lights[GRIP]

Quote:
Originally Posted by vScourge View Post
Are you able to throttle down the exposure level on that camera? In our experience, if you can't do that then you won't be able to get good green/blue/whatever color values off the reflective tape from your LED ring (assuming you use one). Without exposure control the tape blooms out to a near-white value, making it very difficult to isolate that separate from the field lights.

We use a Logitech C920 on a RPi2, and had to dig up an old command-line program that supports fiddling with the exposure settings. The consumer-grade utility Logitech ships these days (the Windows one with the GUI) only works for that session, and only on Windows of course.

Once we had exposure under control it was pretty easy to get reliable target isolation using GRIP. The sunglasses tip is interesting, hadn't thought of that.
We used a C930e, which supports exposure control directly via NI IMAQdx. We didn't need any external tools.

If arena lights are a problem, then you definitely need a lower exposure setting. The target should clearly be the color of your LED ring.
From your picture, I can't exactly tell what color your LED ring is, or whether your exposure setting is appropriate.

Last edited by euhlmann : 08-04-2016 at 09:38. Reason: Typo
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 06:42.

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