Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4984

AI Accelerator • Re: Pi Hailo AI hat availability?

$
0
0
In the hailo examples it identifies a particular object eg person...

Code:

  for detection in detections:        label = detection.get_label()        bbox = detection.get_bbox()        confidence = detection.get_confidence()        if label == "person": 

How do we do similar in picamera2 example detect.py ?

Code:

   # Extract detections from the inference results                detections = extract_detections(results[0], video_w, video_h, class_names, args.score_thresh)     
I managed to detect a clock by checking results[0][74] != [ ] but is there another way ?

Statistics: Posted by gordon77 — Sat Sep 07, 2024 6:07 pm



Viewing all articles
Browse latest Browse all 4984

Trending Articles