Go to Post Tell the truth - that's really a small barbecue grill on that robot isn't it. - Tom Line [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 04-18-2016, 07:34 PM
Mr. Lim Mr. Lim is online now
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
LifeCam 3000 HD - Unable to manually set exposure for dark images

Many people appear to be having difficulty getting the Microsoft LifeCam 3000 HD to get nice dark images, suitable for retroreflective image processing.

Using .setExposureManual(0) and .setExposureManual(1) doesn't work as 0 is too dark, and 1 is too bright.

In the USBCamera class, there is an updateSettings() method.

Around line 154 there is code to try and scale values from 0-100 to whatever the camera's native exposure settings are. This doesn't seem to be working properly for the LifeCam 3000 HD.

I replaced the line:
NIVision.IMAQdxSetAttributeI64(m_id, ATTR_EX_VALUE, val);

with:
NIVision.IMAQdxSetAttributeI64(m_id, ATTR_EX_VALUE, m_exposureValue);

This will pass the raw number from 0-100 you specify to the camera, without trying to scale it.

Be careful, the camera only accepts a certain set of valid value for these exposure settings. A value of 5 seemed to work okay for us, but we need to test this more.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #2   Spotlight this post!  
Unread 04-18-2016, 07:50 PM
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,345
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: LifeCam 3000 HD - Unable to manually set exposure for dark images

Quote:
Originally Posted by Mr. Lim View Post
...
Be careful, the camera only accepts a certain set of valid value for these exposure settings. A value of 5 seemed to work okay for us, but we need to test this more.
Absolutely correct!

Without pointing fingers, let's just say, Microsoft LifeCams will ONLY accept certain values, everything else will end up with over exposure.

As an example, I used V4L2 commands to set exposure. Only the following work:
5, 9, 10, 19, 20, 39, 78, 156, 312, 625, 1250, 2500, 5000 and 10000. Nothing beyond 156 works for 30FPS.

The saddest part of this is that if you query the camera for values it will accept, it reply's with "5-20,000".
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 04-18-2016 at 11:45 PM. Reason: Added values above 156
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 07:22 AM.

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