We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c92db5 commit 1413201Copy full SHA for 1413201
motrackers/detectors/nanodet.py
@@ -75,4 +75,6 @@ def visualize(self, dets, meta, class_names, score_thres, wait=0):
75
cv2.rectangle(image, (bb[0], y_label - label_height), (bb[0] + label_width, y_label + baseLine),
76
(255, 255, 255), cv2.FILLED)
77
cv2.putText(image, label, (bb[0], y_label), cv2.FONT_HERSHEY_SIMPLEX, 0.5, clr, 2)
78
+ bboxes = np.array(bboxes).astype('int')
79
+ confidences = np.array(confidences)
80
return bboxes , confidences , class_ids , image
0 commit comments