Open jpm-canonical opened 4 months ago
Do what it says...
AfMode not supported by this camera, please retry with 'auto-focus-mode=AfModeManual'
Change auto-focus-mode=2 to auto-focus-mode=AfModeManual
Forcing this setting to either auto focus
or manual focus
won't work, as we do not know which camera a user is using. If we leave this setting out, and let libcamera decide, the chance is the highest all Raspberry Pi cameras will work with this example.
OK. Using auto-focus-mode=AfModeManual worked fine with my Pi GS camera but haven't tried others.
Hi,
PI5 GS camera
python basic_pipelines/pose_estimation.py --input rpi
with:
source_element = f"libcamerasrc name=src_0 auto-focus-mode=AfModeManual ! " # auto-focus-mode=2 AfModeManual
source_element += f"video/x-raw, format={self.network_format}, width=1456, height=1088 ! "
only COLORED STRIPES appear?!
But:
rpicam-vid -t 0 --post-process-file ~/rpicam-apps/assets/hailo_yolov8_pose.json --lores-width 640 --lores-height 640 --width 1456 --height 1088
is OK.
Thanks Ed
Agreed width=1456, height=1088 ! Fails... but width=1280, height=960 ! works. I don't know why !!
width=1280 height=1088 ! also works , gives a slightly different field of view
Hi, it works! Thank you very much Ed
Hi, it works! Thank you very much Ed
Gesendet: Dienstag, 16. Juli 2024 um 17:01 Uhr Von: "Gordon999" @.> An: "hailo-ai/hailo-rpi5-examples" @.> Cc: "Eduk-Kurz" @.>, "Comment" @.> Betreff: Re: [hailo-ai/hailo-rpi5-examples] Example scripts force autofocus for all RPi camera types (Issue #23)
Agreed width=1456, height=1088 ! Fails... but width=1280, height=960 ! works. I don't know why !!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Using the example on a Raspberry Pi 5, with an old v1.3 camera , the scripts exits with an error. It's clear from the error message that the script forces auto focus on, while not all camera hardware supports this.