View Single Post
  #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