Running the Detection.py program (or any within recourses) doesn’t use autofocus for me.
I’ve tried multiple ways by using picamera2 to set but not working.
Anyone run into this issue?
Running the Detection.py program (or any within recourses) doesn’t use autofocus for me.
I’ve tried multiple ways by using picamera2 to set but not working.
Anyone run into this issue?
In order to make use of the autofocus capabilities of the camera you need to apply controls to the camera. See section 5.2.2 of the Picamera2 docs https://datasheets.raspberrypi.com/camera/picamera2-manual.pdf
You need to apply these changes to the gstreamer_app.py
which is located in hailo-rpi5-examples/venv_hailo_rpi5_examples/lib/python3.11/site-packages/hailo_apps_infra
Locate the loc with the existing controls ('FrameRate': 30
) and append the autofocus parameter as quoted in the documentation.