-
Notifications
You must be signed in to change notification settings - Fork 13
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
How can I disable auto exposure and set exposure time? #33
Comments
I tried to get the range of values of the ros2 param describe camera ExposureTime Parameter name: ExposureTime
Type: integer
Description: Integer32 scalar range {13}..{0}
Constraints:
Min value: 13
Max value: 0 The min/max values don't make sense to me. I tried to set this parameter to a value of 5 in a launch file, and this is the output I got from the node log Component constructor threw an exception: parameter 'ExposureTime' could not be set: Parameter {ExposureTime} doesn't comply with integer range. |
If your camera has an option for auto-exposure that is exposed via libcamera, you should be able to get/set
I have a "Camera Module v1" (OV5647) and I can see a similar inconsistency with min/max values:
|
I managed to build arm64 packages of version 0.1 and 0.2 of libcamera that include the The versions show me the following controls: libcamera 0.1:
libcamera 0.2:
In both cases, the |
You should be able to set AeEnable to false when starting the camera now using #39. Regarding the wrong value range for the ExposureTime control, I have reported the issue to |
Thanks a lot for investigating this with the standard libcamera apps and reporting this upstream. If this already happens with the default apps, then there is nothing we can do here except waiting for a new release with a bug fix. The remaining question for me would be if this issue is also present in the 0.1 version. Otherwise, I would revert back to the 0.1 version of the libcamera package until a fix has been released. @christian-nils Do you have a way to test different versions of libcamera? |
Unfortunately, I have only a RPi5 setup at the moment so libcamera v0.1.0 won't work as RPi5 support was introduced later. |
It seems that they found the fix for the bug, see raspberrypi/rpicam-apps#673 (comment). I applied the patch and I get a reasonable range now: root@microvision:~/ws# ros2 param describe /camera ExposureTime
Parameter name: ExposureTime
Type: integer
Description: Integer32 scalar range {60}..{674181621}
Constraints:
Min value: 60
Max value: 674181621 |
Is there anything that can be done in the node to prevent that issue? If not, I would close this issue. |
I would tend to believe that this is out of the node's scope, yes. |
Ok. Then I am closing this issue and hope the problem gets solved with libcamera 0.3. |
Hi @christianrauch
The auto exposure is not working apropriately on my camera and the image keeps flickering. I would like to disable auto exposure and set exposure time myself. Are there parameters that I can use to do that?
Thanks
The text was updated successfully, but these errors were encountered: