Hailo_platform and raspberry pi 5

Hello,how can we perform object detection with YOLOv8 on a Raspberry Pi 5 using the hailo_platform library? Is there an example code available that works with Python?

Hey @faikkom66,

The hailo_platform is the Python API for Hailo. You can check out some examples at the following link: Hailo Application Code Examples.

Hi,
when i run the example , i get hailo_platform ModuleNotFound error:

(venv) pi@raspberrypi:~/Hailo-Application-Code-Examples-main/runtime/python/object_detection $ ./object_detection.py -n ./yolov7.hef -i zidane.jpg
Traceback (most recent call last):
File “/home/pi/Hailo-Application-Code-Examples-main/runtime/python/object_detection/./object_detection.py”, line 17, in
from utils import HailoAsyncInference, load_input_images, validate_images, divide_list_to_batches
File “/home/pi/Hailo-Application-Code-Examples-main/runtime/python/utils.py”, line 8, in
from hailo_platform import (HEF, VDevice,
ModuleNotFoundError: No module named ‘hailo_platform’

Please advice how to solve it

Hey @kyurrii

It appears you’re working in a Python virtual environment where pyhailort isn’t installed. You have two options:

  1. Run your code directly on the OS (outside the virtual environment) where pyhailort is likely already installed
  2. If you prefer to stay in your virtual environment, you can install pyhailort within it
1 Like