-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use v4l2-ctl to update gain #544
Comments
Quick update: I tried to capture by writing a c++ program to capture image via v4l2. In the program I set gain = 8. However, I noticed the gain seems to bounce back to a certain value and stopped. So looks like there's some internal register (most likely gain_auto 0x0199e205 (bool)) that is controlling the gain and we are not able to program it via v4l2? |
Hello the missing properties are not known by v4l2 by default. Thus we made some udev rules, which add these properties to v4l2. You can follow the article at https://wiki.theimagingsource.com/index.php/Using_USB_2.0_CCD_Cameras_in_Linux, even if it is for using one of our older camera models. The udev file contains the rules for the modern cameras too. As you can see in your listing, gain is expected to have a range from 0 to 240. I suppose, you will get this range after installing the udev rules. Stefan |
Hi Stefan,
I am using 2 of the Imaging Source Europe GmbH DMK 37AUX290 for my project. Due to software incompatibility we are unable to import the tiscamera to our code base. So I tried to use linux v4l2 to control this camera.
We don't do any fancy things, just manually set the gain and exposure for the camera. I thought that should be pretty easy. However, turns out that using v4l2-ctl --list-ctrls returns:
When I tried to set the gain register using both c++ or v4l2-ctl, it won't allow me to do so. Looks like there's some auto gain setting that prevents manually adjusting the gain settings.
Earlier this year we tried to use the same cameras on another desktop computer but found the programability is much better: v4l2-ctl --list-ctrls returns:
I am curious to know why there's difference between one desktop to another, and whether there's a way to simply use v4l2 to control gain and exposure of the camera. Thanks.
The text was updated successfully, but these errors were encountered: