Gst-launch works but pythongst returns an error

Hello,

I revised the code from Hailo-Application-Code-Examples/runtime/gstreamer/detection_python at main · hailo-ai/Hailo-Application-Code-Examples · GitHub. When on a terminal, the code works for
gst-launch-1.0 souphttpsrc location=http://181.57.169.89:8080/mjpg/video.mjpg name=source_0 ! queue name=queue_jpegdec0 leaky=downstream max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! jpegdec ! videoscale ! video/x-raw,width=640,height=640,pixel-aspect-ratio=1/1 ! queue name=queue_pre_hailonet leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailonet hef-path=/models/yolov5m_wo_spp_60p.hef batch-size=1 nms-score-threshold=0.5 nms-iou-threshold=0.45 output-format-type=HAILO_FORMAT_TYPE_FLOAT32 ! queue name=queue_pre_hailofilter leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailofilter function-name=yolov5 so-path=/local/workspace/tappas/apps/h8/gstreamer/libs/post_processes/libyolo_hailortpp_post.so qos=false ! queue name=queue_pre_hailotracker leaky=no max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! hailotracker ! queue name=queue_pre_hailooverlay leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailooverlay ! queue name=queue_pre_videoconvert leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! videoconvert ! queue name=queue_pre_display leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! fpsdisplaysink video-sink=xvimagesink name=hailo_display sync=false text-overlay=False

but same exact code doesn’t work on the python gstreamer. The Gst.loop.run() returns error: Aborted (core dumped).
Any ideas solving this issue?

Hey @jackson ,

Welcome to the Hailo Community!

Thank you for reaching out. It seems like you’re referring to an older version of the example.

For the most up-to-date and relevant example of a detection pipeline, I recommend checking out the Hailo RPI5 Examples repository on GitHub: GitHub - hailo-ai/hailo-rpi5-examples

Please take a look at the examples in the repository and let me know if you have any further questions or need assistance with setting up and running the detection pipeline on your target platform.

Best Regards,
Omria

Hello,

No, I don’t refer to older version of this example. This is the code that I have written.

I will provide you a simple python sample with this error.
Best regards