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:
- Run your code directly on the OS (outside the virtual environment) where
pyhailort
is likely already installed - If you prefer to stay in your virtual environment, you can install
pyhailort
within it