From 0b2b4207ce0db59ceac96eec407a1bd7d9cf3ad2 Mon Sep 17 00:00:00 2001 From: Paulo Jarbas Date: Tue, 10 Oct 2023 20:52:06 -0300 Subject: [PATCH] Update demo.py remove deprecated calls in draw methods --- demos/yolov5/src/demo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/demos/yolov5/src/demo.py b/demos/yolov5/src/demo.py index f2cab00b..00368868 100644 --- a/demos/yolov5/src/demo.py +++ b/demos/yolov5/src/demo.py @@ -151,9 +151,7 @@ def yolo_detections_to_norfair_detections( ) tracked_objects = tracker.update(detections=detections) if args.track_points == "centroid": - norfair.draw_points(frame, detections) - norfair.draw_tracked_objects(frame, tracked_objects) + norfair.draw_points(frame, tracked_objects) elif args.track_points == "bbox": - norfair.draw_boxes(frame, detections) - norfair.draw_tracked_boxes(frame, tracked_objects) + norfair.draw_boxes(frame, tracked_objects) video.write(frame)