Go to Post See... this is what I love about my friends in FIRST. They come forward to help me whenever I need anything. - Arefin Bari [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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