hailo-ai / hailo-rpi5-examples

MIT License
385 stars 59 forks source link

RPI input error #26

Closed responsibilities5 closed 4 months ago

responsibilities5 commented 4 months ago

Hi, I tried running the command python basic_pipelines/detection.py -f -i rpi, but it ended with an error:

Error: gst-resource-error-quark: Failed to enable auto focus (13), ../src/gstreamer/gstlibcamerasrc.cpp(666): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:src_0:
AfMode not supported by this camera, please retry with 'auto-focus-mode=AfModeManual'

Can someone guide me how I can edit my gst pipeline to accept input with manual auto focus?

responsibilities5 commented 4 months ago

Hey, I figured it out, I edited line 150 in detection.py: "libcamerasrc name=src_0 auto-focus-mode=2 ! " and changed the value to AfModeManual and it worked out!