Skip to content

Enable dynamic exposure framerate for camera input and handle subproc…#132

Merged
openminddev merged 1 commit into
mainfrom
fix-auto-exposure
Jun 12, 2026
Merged

Enable dynamic exposure framerate for camera input and handle subproc…#132
openminddev merged 1 commit into
mainfrom
fix-auto-exposure

Conversation

@jerinpeter

Copy link
Copy Markdown
Contributor

This pull request enhances the camera initialization process in the camera_reader.py module by programmatically enabling dynamic framerate exposure control using the v4l2-ctl utility. It also introduces robust error handling to ensure the system remains stable if the utility is missing or the command fails.

Camera exposure control improvements:

  • Added a subprocess call to execute v4l2-ctl and enable exposure_dynamic_framerate=1 for the selected camera device, improving camera exposure behavior.
  • Implemented error handling for cases where v4l2-ctl is not installed or the command fails, logging appropriate warnings to assist with troubleshooting.

Dependency update:

  • Imported the subprocess module to support the new camera control functionality.

@openminddev openminddev merged commit c4fcbcc into main Jun 12, 2026
7 checks passed
@openminddev openminddev deleted the fix-auto-exposure branch June 12, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants