Working Python inference example with .hef on Raspberry Pi (HailoRT 4.21.0, critical request)

Hi everyone,
I’m working with a Hailo-8 accelerator on Raspberry Pi 5 (64-bit, Python 3.11, HailoRT 4.21.0).
I’ve installed the official package:
hailort-4.21.0-cp311-cp311-linux_aarch64.whl from the Hailo website.

:brain: My goal:

  • Load my custom .hef model (YOLOv8n with 2 classes: OK / Not OK),
  • Perform inference on a single image (PNG or JPEG) using Python,
  • Retrieve the result (classification or detection) and print/display it.

:red_exclamation_mark:The problem:

  • High-level Python APIs like Inferer or VStreamsBuilder are missing in hailo_platform,
  • Even with Device and HEF, all attempts led to low-level complexity or errors,
  • I can’t find any working Python inference example for ARM64 (Raspberry Pi) in the documentation or community.

:police_car_light: Please help:

I really, really need a working example of Python inference from image using .hef — any minimal working script would help a lot.
Even a classification-only pipeline would be a great start.

:red_question_mark:Questions:

  1. Is there any official or community working Python example using .hef with hailort on Raspberry Pi?
  2. Is this currently supported in Python at all, or only in C++?
  3. If high-level API is not available in this wheel, are there alternatives?

Thank you so much in advance — I’ve already spent days on this, and any help or real code would be invaluable.

Welcome to the Hailo Community!

Did you have a look into our Application Example repository?

GitHub - Hailo Application Code Examples - Python