Images
Run inference on a single image using a URL, file path, or NumPy array. This page shows how to use each input type with a loaded model.
result = model(
image_source
) # exactly the same as: result = model.predict(image_source)Common setup (used in all cases)
from degirum_tools import ModelSpec, Display
# Configure & load once
model_spec = ModelSpec(
model_name="yolov8n_coco--640x640_quant_hailort_multidevice_1",
zoo_url="degirum/hailo",
inference_host_address="@local",
model_properties={"device_type": ["HAILORT/HAILO8", "HAILORT/HAILO8L"]},
)
model = model_spec.load_model()Image URL
Local file path
NumPy array
Last updated
Was this helpful?

