Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

Camera board • Re: set_controls() gets slower and slower

$
0
0
Thank you @therealdavidp for the quick response and for all the rest of the help you provide in this forum.

My application is for a lake surface rover taking pictures of aquatic plants. As you can imagine, the lighting and the scene is changing every frame. Thus, requiring my own very aggressive autoexposure algorithm. The algorithm analyzes acquired image N and then adjusts the AnalogueGain via set_controls() and adjusts the exposure via the external trigger pulse width. The goal is for the new gain and exposure settings to be used for acquisition N+1.

My understanding from hours of reading posts on this forum, is the only way to ensure acquisition N+1 has the desired settings, is to stop(), adjust camera configuration and its controls, start().

Code:

        stop()    # adjust still_configuration and its controls    start("still")    acquire(...)  # the resulting acquisition should have all the settings in the still_configuration
For a start("still"), my understanding is that the still_configuration.controls object is what's being used - not camera.controls. Please correct me if there is a better way to make an AnalogueGain change and ensure the change affects the very next acquisition!!!

Statistics: Posted by cmarrion — Wed May 28, 2025 12:17 am



Viewing all articles
Browse latest Browse all 8051

Trending Articles