|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
USB-Camera lower exposure
Hey guys, I have a simple question: how to lower the exposure in the usb camera lifecam HD 3000?
|
|
#2
|
|||
|
|||
|
Re: USB-Camera lower exposure
Under: WPI Robotics Library->Camera->Camera Properties Look for the one that says "Set Expos"
|
|
#3
|
|||||
|
|||||
|
Re: USB-Camera lower exposure
Look in the Vision Processing.vi
One of the settings there is Camera Set Expos. You can saturate the exposure by pointing the camera at something brighter and use Hold Current. Look at the Context Help for that library vi for help. |
|
#4
|
|||
|
|||
|
Re: USB-Camera lower exposure
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: USB-Camera lower exposure
You could, it would take a little work.
Make a control or use one of the sample ones on the Dashboard for your code to read on the roboRIO. In your roboRIO code when the button changes call Set Expos with the camera reference. |
|
#6
|
|||
|
|||
|
Re: USB-Camera lower exposure
Can you be specific how to do that?
|
|
#7
|
|||||
|
|||||
|
Re: USB-Camera lower exposure
Once you've put the new code onto the roboRIO, go to the Dashboard Basic tab and press DB/Button 1 to make the camera Hold Current exposure setting. This would only work once and assumes that the original Set Expos is still set to "Auto". Once set to Hold current exposure, then if you push the button a second time you won't se any change. To get it to change again you'd need to add another Set Expos to take it back to "Auto" long enough for the camera to adjust the exposure again, then you could Hold Current again. Last edited by Mark McLeod : 25-01-2016 at 16:01. |
|
#8
|
|||
|
|||
|
Re: USB-Camera lower exposure
Quote:
Use slider zero and button zero on the basic tab for the camera exposure. These values are automatically stored as "DB/Slider 0" and "DB/Button 0" and if your robot reads those network table variables, it gets the slider values. Within your camera loop, in the enabled case, the code already updates the image size. Similarly, you can update the exposure by reading the button and slider and calling the Set Exposure subVI. It internally checks against current value and only modifies the camera on change. Greg McKaskle |
|
#9
|
|||
|
|||
|
Re: USB-Camera lower exposure
Quote:
Quote:
One last thing, the set Expos sub-vi input is in precentage values and when we put 0 precent it's really dark and when we put any other number it's normal(1,10,50,0.5)... any ideas what is the range? Last edited by Ronso007 : 27-01-2016 at 05:13. |
|
#10
|
|||
|
|||
|
Re: USB-Camera lower exposure
It will be camera specific. Vision Assistant will show you the range values of the camera exposure, and the percentage is scaled between their min and max values for that property.
Be sure to have enough light that the camera will actually use your value. Testing a camera in varying light can be confusing, as the cameras decide to outsmart you and send you chasing after untamed geese. Greg McKaskle |
|
#11
|
|||
|
|||
|
Re: USB-Camera lower exposure
Quote:
|
|
#12
|
|||
|
|||
|
Re: USB-Camera lower exposure
Just checking, are you using Labview or C++?
|
|
#13
|
|||
|
|||
|
Re: USB-Camera lower exposure
Neither - Java, though the C++ and the Java API should be the same.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|