We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0f3a50 commit e9d528eCopy full SHA for e9d528e
machine-learning/object-detection/live_yolo_opencv.py
@@ -79,7 +79,7 @@
79
80
color = [int(c) for c in COLORS[class_ids[i]]]
81
cv2.rectangle(image, (x, y), (x + w, y + h), color=color, thickness=thickness)
82
- text = f"{LABEL[class_ids[i]]}: {confidences[i]:.2f}"
+ text = f"{LABELS[class_ids[i]]}: {confidences[i]:.2f}"
83
# calculate text width & height to draw the transparent boxes as background of the text
84
(text_width, text_height) = cv2.getTextSize(text, cv2.FONT_HERSHEY_SIMPLEX, fontScale=font_scale, thickness=thickness)[0]
85
text_offset_x = x
0 commit comments