Hi @sherinkonstantiv,
We developed a python SDK that makes working with Hailo8/Hailo8L easy. You find instructions and tutorials at: DeGirum/hailo_examples.
For your specific issue, our PySDK code looks as below. The code runs a yolov8n
model on WebCam with index 0. If you have HAILO8
device instead of HAILO8L
, just change model_name=yolov8n_relu6_coco--640x640_quant_hailort_hailo8_1
import degirum as dg, degirum_tools
model_name = "yolov8n_relu6_coco--640x640_quant_hailort_hailo8l_1"
video_source = 0
# load AI model
model = dg.load_model(
model_name=model_name,
inference_host_address=inference_host_address,
zoo_url=zoo_url,
token=token
)
# Run inference on video_source
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)
Please let u sknow if this helps or if you encounter any difficulties in running the above code.