ok i have done that but now a weird thing keeps happening it just keeps saying Model ‘Yolov8n’ is not found in model zoo ‘/home/pi/hailo_examples/models’ and i am stuck on it for hours
heres my code
import degirum as dg, degirum_tools
inference_host_address = "@local"
zoo_url = '/home/tennibot/hailo_examples/models'
token=''
device_type='HAILORT/HAILO8'
# set model name, and image source
model_name = "Yolov8n"
video_source=0
class_list = ["tennisball"]
# load AI model
model = dg.load_model(
model_name=model_name,
inference_host_address=inference_host_address,
zoo_url = zoo_url,
token=token,
device_type=device_type,
)
# create object tracker
tracker = degirum_tools.ObjectTracker(
class_list=class_list,
track_thresh=0.35,
track_buffer=100,
match_thresh=0.9999,
trail_depth=20,
anchor_point=degirum_tools.AnchorPoint.BOTTOM_CENTER,
)
# attach object tracker to model
degirum_tools.attach_analyzers(model, [tracker])
# run AI inference on video stream and display the results
with degirum_tools.Display("AI Camera") as output_display:
for inference_result in degirum_tools.predict_stream(model, video_source):
output_display.show(inference_result.image_overlay)
and heres the config file
{
"Checksum": "3314f4fcd9099b9085ee79d010affe0c3975ab2be811d26fca7cf252c92e6239",
"ConfigVersion": 10,
"DEVICE": [
{
"DeviceType": "HAILO8",
"RuntimeAgent": "HAILORT",
"SupportedDeviceTypes": "HAILORT/HAILO8",
}
],
"PRE_PROCESS": [
{
"InputType": "Image",
"ImageBackend": "opencv",
"InputPadMethod": "letterbox",
"InputResizeMethod": "bilinear",
"InputN": 1,
"InputH": 640,
"InputW": 640,
"InputC": 3,
"InputQuantEn": true
}
],
"MODEL_PARAMETERS": [
{
"ModelPath": "Yolov8n.hef"
}
],
"POST_PROCESS": [
{
"LabelsPath": "Labels.json",
"OutputNumClasses": 1,
"PythonFile": "HailoDetectionYolo.py",
"OutputPostprocessType": "DetectionYoloV8"
}
]
}