I don’t clearly get how to run this infer function in two cameras at the same time
I have this
configs = [
{
"VIDEO_SOURCE": 0,
"DEVICE_NAME": "CAMERA1"
},
{
"VIDEO_SOURCE": 1,
"DEVICE_NAME": "CAMERA2"
}
]
person_detection_model_path = "yolo11n_silu_coco--640x640_quant_hailort_hailo8l_1"
person_detection_model = dg.load_model(
model_name=person_detection_model_path,
inference_host_address='@local',
zoo_url=zoo_url,
overlay_color=(0, 255, 0),
output_class_set={"person"}
)
def infer(device_name, source):
with degirum_tools.Display(device_name) as output_display:
# for detected_persons in degirum_tools.predict_stream(person_detection_model, video_source, analyzers=[tracker, line_counter]):
for detected_persons in degirum_tools.predict_stream(person_detection_model, source, analyzers=[tracker]):
---->>> HERE ALL THE LOGIC TO MANAGE DATA OF DETECTED PERSONS
But I need it to fit with the given example