Go to Post The engineers and mentors provide the "I" in FIRST and FIRST would be nowhere near where it is today without this exceptional leadership shown by so many of these volunteers. - Chris Fultz [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 23-01-2016, 11:46
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Brightness on 2016 vision samples

For all of the images we were given to test vision processing with, they all look like they were taken in a room with the lights off. Was this done with some setting on the camera? I've personally never been to an event that had the lights of, except maybe on Einstein...
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
  #2   Spotlight this post!  
Unread 23-01-2016, 12:11
Sky Captain's Avatar
Sky Captain Sky Captain is offline
Lead Software Mentor
AKA: Will
FRC #0386 (Voltage)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2006
Location: Virginia
Posts: 20
Sky Captain is an unknown quantity at this point
Send a message via AIM to Sky Captain
Re: Brightness on 2016 vision samples

My team was also wondering this. The image recognition works really well with the low lighting, but in normal lighting, the recognition seems to take longer/be not as easy.
  #3   Spotlight this post!  
Unread 23-01-2016, 13:45
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 19
CurlyFries is an unknown quantity at this point
Re: Brightness on 2016 vision samples

I would assume that they changed the camera settings to filter out certain levels of light. There is a screensteps tutorial here.

https://wpilib.screenstepslive.com/s...amera-settings
  #4   Spotlight this post!  
Unread 23-01-2016, 13:50
simon-andrews's Avatar
simon-andrews simon-andrews is offline
Registered User
FRC #4761 (Robockets)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Reading, MA
Posts: 16
simon-andrews is an unknown quantity at this point
Re: Brightness on 2016 vision samples

I believe the images were taken with a low exposure setting.

Here is the Wikipedia article about exposure in photography and an article talking about exposure with examples of overexposed and underexposed images.
__________________

GitHub | StackOverflow
  #5   Spotlight this post!  
Unread 23-01-2016, 13:58
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 19
CurlyFries is an unknown quantity at this point
Re: Brightness on 2016 vision samples

I would agree. There's also a setting on the camera webpage to adjust the exposure level; the screensteps talk about that too.
  #6   Spotlight this post!  
Unread 24-01-2016, 09:22
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: Brightness on 2016 vision samples

There are many ways to set up the camera and get images, but I'll list the elements using the WPILib terminology.

The retroreflective tape is such a strong reflector that you can think of it as an amplifier of the ring light. The material will return either 300 or 600 times as much light as bright white paint. I no longer remember the spec for the material being used. It is so bright that it can overwhelm the camera's sensor and auto settings and you will actually get an image with a white target and an LED colored fringe. This is called sensor bloom. Fancier camera sensors will postpone the blooming, but sufficiently bright light is a challenge.

The good news is that you can use this to your advantage. If you lower the exposure time and/or lower the brightness of the image, the background will darken and the tape will turn from white to the LED color. This also helps with processing performance, by the way, because many of the color conversion and processing algorithms will then be dealing with lots of dark pixels which they can quickly dismiss.

So FIRST did this on purpose. You can too by setting the brightness and/or the exposure settings. You may also want to turn off the auto white balance and choose something that will stay predictable.

Greg McKaskle
  #7   Spotlight this post!  
Unread 24-01-2016, 15:24
Ronso007 Ronso007 is offline
Registered User
FRC #3339
 
Join Date: Jan 2016
Location: Israel
Posts: 10
Ronso007 is an unknown quantity at this point
Re: Brightness on 2016 vision samples

Quote:
Originally Posted by CurlyFries View Post
I would agree. There's also a setting on the camera webpage to adjust the exposure level; the screensteps talk about that too.
Quote:
Originally Posted by CurlyFries View Post
I would assume that they changed the camera settings to filter out certain levels of light. There is a screensteps tutorial here.

https://wpilib.screenstepslive.com/s...amera-settings
Quote:
Originally Posted by Greg McKaskle View Post
There are many ways to set up the camera and get images, but I'll list the elements using the WPILib terminology.

The retroreflective tape is such a strong reflector that you can think of it as an amplifier of the ring light. The material will return either 300 or 600 times as much light as bright white paint. I no longer remember the spec for the material being used. It is so bright that it can overwhelm the camera's sensor and auto settings and you will actually get an image with a white target and an LED colored fringe. This is called sensor bloom. Fancier camera sensors will postpone the blooming, but sufficiently bright light is a challenge.

The good news is that you can use this to your advantage. If you lower the exposure time and/or lower the brightness of the image, the background will darken and the tape will turn from white to the LED color. This also helps with processing performance, by the way, because many of the color conversion and processing algorithms will then be dealing with lots of dark pixels which they can quickly dismiss.

So FIRST did this on purpose. You can too by setting the brightness and/or the exposure settings. You may also want to turn off the auto white balance and choose something that will stay predictable.

Greg McKaskle
Any idea how you change those settings with the "Lifecam 3000" Camera?
  #8   Spotlight this post!  
Unread 24-01-2016, 19:22
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
Re: Brightness on 2016 vision samples

we were wondering this same thing. We looked into it and from what we can tell you can change the settings using a program however i do not think you can save the settings. Has anyone solved this issue
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
  #9   Spotlight this post!  
Unread 24-01-2016, 19:35
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: Brightness on 2016 vision samples

The FRC update for Labview has VIs for setting these. They aren't as nice as I'd like, so I've been working on reading the limits directly and developing my own.
__________________
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.
  #10   Spotlight this post!  
Unread 24-01-2016, 21:03
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: Brightness on 2016 vision samples

The WPILib Camera VIs were originally written for the Axis VAPIX API. When USB cameras were added, they were added via the NI IMAQdx libraries. About half of the properties return a "not supported" error, but some others were extended to have a custom setting.

Lately, I've been using the Vision Acquisition express block configuration. It leads through five wizard screens with a test mode to view the changes as you experiment. It then generates code for IMAQdx. Once done, I will generally right-click and Open the Front Panel which will convert it to a VI. This gives a good starting point for more advanced configuration.

To darken, you can make adjustments to exposure, gain, and brightness.

Greg McKaskle
  #11   Spotlight this post!  
Unread 25-01-2016, 11:59
Ronso007 Ronso007 is offline
Registered User
FRC #3339
 
Join Date: Jan 2016
Location: Israel
Posts: 10
Ronso007 is an unknown quantity at this point
Re: Brightness on 2016 vision samples

Quote:
Originally Posted by Greg McKaskle View Post
The WPILib Camera VIs were originally written for the Axis VAPIX API. When USB cameras were added, they were added via the NI IMAQdx libraries. About half of the properties return a "not supported" error, but some others were extended to have a custom setting.

Lately, I've been using the Vision Acquisition express block configuration. It leads through five wizard screens with a test mode to view the changes as you experiment. It then generates code for IMAQdx. Once done, I will generally right-click and Open the Front Panel which will convert it to a VI. This gives a good starting point for more advanced configuration.

To darken, you can make adjustments to exposure, gain, and brightness.

Greg McKaskle
Quote:
Originally Posted by adciv View Post
The FRC update for Labview has VIs for setting these. They aren't as nice as I'd like, so I've been working on reading the limits directly and developing my own.
Quote:
Originally Posted by Bpk9p4 View Post
we were wondering this same thing. We looked into it and from what we can tell you can change the settings using a program however i do not think you can save the settings. Has anyone solved this issue
Is there an easier way? we getting trouble connecting the vision acquisition to the dashboard image loop
  #12   Spotlight this post!  
Unread 27-01-2016, 07:32
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: Brightness on 2016 vision samples

The camera API to an Axis camera can be remote, since it is a conversation between the laptop and the camera's web server. But the USB camera needs to have the call made on the robot, where the session was opened.

Greg McKaskle
  #13   Spotlight this post!  
Unread 27-01-2016, 09:02
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: Brightness on 2016 vision samples

Quote:
Originally Posted by Bpk9p4 View Post
we were wondering this same thing. We looked into it and from what we can tell you can change the settings using a program however i do not think you can save the settings. Has anyone solved this issue
I just posted a new thread with some specifics. We are using Java, I can set the values into the USBCam object and save the values (using the Preferences class), but they don't seem to be taking effect. No change in exposure or brightness.

The Screensteps are only for the Web interface of the Axis Cam. It would be nice if there were some examples or documentation on doing these basic settings from Java or C++
  #14   Spotlight this post!  
Unread 27-01-2016, 09:05
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: Brightness on 2016 vision samples

Quote:
Originally Posted by Ronso007 View Post
Is there an easier way? we getting trouble connecting the vision acquisition to the dashboard image loop
Ron, check the thread I just started (LifeCam USBCamera changing settings from java) - it's not about this connection, but it does contain sample code showing how to do it. Basically you create a USBCam object, open the connection, start the capture, then you loop getting and image and passing that image to the CameraServer object. It's actually pretty simple - now if I can figure out the rest, which I thought was going to be simple, but so far has not been
  #15   Spotlight this post!  
Unread 27-01-2016, 09:16
jonboy jonboy is offline
Engineer/Mentor
FRC #0885 (The Green Team)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Tunbridge, Vermont
Posts: 46
jonboy is an unknown quantity at this point
Re: Brightness on 2016 vision samples

I apologize for not doing my homework.

The question is: Can the EXPOSURE of the USB camera be held or set manually? If it can be held will it hold through an on/off/on power cycle?

TNX
__________________
... jon
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 02:27.

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