Go to Post Figure out where you have to start and what end result you want, from there, all you have to fill in is the middle. - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 02-03-2012, 19:47
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,295
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Controlling Axis Camera exposure time

Is there a way to control the Axis Camera exposure time in LabView? The ring LEDs we are using seem to always be too bright (and thus we're getting oversaturation) or too dark. What we'd like to do is use the bright LEDs and then limit the exposure time as we get closer to the target.

Any ideas?
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2012, 08: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,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: Controlling Axis Camera exposure time

The cameras unfortunately don't have a programmatic way to set exposure time numerically. They do have a few properties that influence it though. They are the Exposure Mode and the Exposure Priority. Mode has Auto, flicker-free 50Hz, flick-free 60Hz, and Hold Current. The default for the camera is Auto. Auto is "magically" obvious, Hold is very useful if you have a calibration procedure, and the other two are dithering the exposures to avoid aliasing with flickering light sources.

The priority has choices for None, Quality, and Framerate. For low-light situations, this will influence whether the camera increases the exposure time or ups the sensor gain. Longer exposure takes in more light but possibly lowers fps and introduces blur. Higher gain will introduce noise into the pixel values.

My suggestion is the same as is in the vision white paper. Develop a calibration procedure related to shining a bright light into the camera, setting it to auto, waiting a few seconds, then setting it to Hold. You can try to do this at the beginning of the match, but it should be fine to do it once, or once per venue. Demoing this, I often just point the camera up to the ceiling, but to be more accurate, you could use a white or gray matte surface, perhaps copy paper to bounce the light into the camera at a known distance, etc.

A team a few years ago did manage to find undocumented files on the 206 camera that contain the hold values. Theoretically, you could ftp files to the camera and reboot it, but WPILib doesn't do that. Also, the M1011 has more properties for exposure, but they are not exposed via WPILib.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2012, 12:09
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,295
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: Controlling Axis Camera exposure time

Thanks, Greg. We've been using everything you've mentioned with reasonable success, and were hoping for a more elegant solution than the eWatt-to-the-face-and-Hold calibration method. (More specifically, what we wanted to do was vary the exposure time with range so that we could calibrate with a couple of clicks instead of using a light to the face.)

Ah, well. Not everything works the way we want it to all the time. Thanks again!
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
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 11:19.

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