Considering this example has been taken directly from the repo without any modifications, I expect it to just work. Does anyone have any suggestions here?
The example you’re trying to run was originally designed for x86 systems with Hailo8. We’re working on an RPI-compatible update that will be released by the end of this week.
Temporary Fix
1. Update Requirements File
Replace your current requirements.txt content with:
This helped, Thanks a lot
Had some basic problems with supervision if there was not detection in the video the code failed so had to add
if detections["xyxy"].size ==0:
sv_detections=sv.Detections.empty()
sv_detections = tracker.update_with_detections(sv_detections)
# Update detections with tracking information
elif detections["xyxy"].size > 0:
in def postprocess_detections funciton
also with custom model the detections list was throwing some error
to had to modify it
def extract_detections(
hailo_output: List[np.ndarray], h: int, w: int, threshold: float = 0.5
) -> Dict[str, np.ndarray]:
"""Extract detections from the HailoRT-postprocess output."""
xyxy: List[np.ndarray] = []
confidence: List[float] = []
class_id: List[int] = []
num_detections: int = 0
for i, detections in enumerate(hailo_output):
if i == 0:# for person class only
#print("length:",detections)
if len(detections) == 0:
continue
detections=[detections] # do this only if model is custom or else plz comment
type or paste code here
Subject: ImportError: libhailort.so.4.18.0 Missing in Hailo Detection Example
Description:
I am encountering an issue while running the detection_with_tracker.py script from the Hailo Application Code Examples. The script fails to start due to a missing shared library (libhailort.so.4.18.0). Below are the details:
Traceback (most recent call last):
File "/home/uwais/Hailo-Application-Code-Examples/runtime/python/detection_with_tracker/detection_with_tracker.py", line 16, in <module>
from utils import HailoAsyncInference
File "/home/uwais/Hailo-Application-Code-Examples/runtime/python/utils.py", line 8, in <module>
from hailo_platform import (HEF, VDevice,
File "/home/uwais/Hailo-Application-Code-Examples/runtime/python/detection_with_tracker/myenv/lib/python3
I hope you have followed omria comments . Try running it without the python v-environment. Will check with my setup and see if there is any difference .My current hardware was 8l not 8 . Will update you in case i find anything different