![]() |
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.
|
Re: USBCamera setExposure() not working
Our team used the
Code:
v4l2-ctlI 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 :P |
Re: USBCamera setExposure() not working
Quote:
|
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. |
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*Sunglasses. Seriously, not everything is a software problem! |
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 |
Re: USBCamera setExposure() not working
Quote:
|
| All times are GMT -5. The time now is 12:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi