|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
USBCamera setExposure() not working
Heya. I've been trying to use the USBCamera class' setExposureManual() function (apologies for the slight title type) to lower the exposure of our Microsoft Cinema webcam. The problem I'm having is pretty straightforward; no matter what values I pass it, the exposure doesn't change. The default exposure is way too bright, and it whitewashes almost every light source/bright surface to the point where the it is entirely white. Has anyone else experienced this, and what have you done to fix it? If you've gotten exposure control working with the Microsoft Lifecam 3000, please share that and what workarounds/fixes you had to apply (if any). We were using the Lifecam last season but encountered the same problem.
Last edited by Oromus : 12-01-2017 at 18:47. |
|
#2
|
|||
|
|||
|
Re: USBCamera setExposure() not working
Our team used the
Code:
v4l2-ctl I can't remember the specific arguments we used, however, so you'll need to play around a bit with the utility to find the property you need to set ![]() |
|
#3
|
|||||
|
|||||
|
Re: USBCamera setExposure() not working
Quote:
Last edited by Oromus : 12-01-2017 at 19:31. |
|
#4
|
|||
|
|||
|
Re: USBCamera setExposure() not working
No need to compile anything! The binary is already on the roboRIO
One thing to note: In our experiments, either v4l2 or the Lifecam seemed to implement poor exposure control; we were only able to set it to one of the extremes (super high or super low). Thankfully, the super low exposure was able to pick up the retroreflective tape well, and so there was no need to use an exposure in the middle. |
|
#5
|
|||
|
|||
|
Re: USBCamera setExposure() not working
With our Lifecam 3000 connected to our Pi last year we used:
Code:
v4l2-ctl --set-ctrl=exposure_auto=1 v4l2-ctl --set-ctrl=exposure_absolute=25 *Sunglasses. Seriously, not everything is a software problem! |
|
#6
|
||||
|
||||
|
Re: USBCamera setExposure() not working
This may seem trivial, but are you using the range the function takes (0-100)?
I would have said try NIVision because that's how we did exposure control last year (not lifecam), but of course it's not in WPILib anymore |
|
#7
|
|||
|
|||
|
Re: USBCamera setExposure() not working
Using the documented range is probably a bad idea. We dorked around with the Lifecam last year and found out, and don't quote me on the numbers, the camera actually supported exposure ranges from -11 to 2.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|