Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9d528e

Browse files
committed
fixed typo on yolo object detection tutorial
1 parenta0f3a50 commite9d528e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎machine-learning/object-detection/live_yolo_opencv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
color= [int(c)forcinCOLORS[class_ids[i]]]
8181
cv2.rectangle(image, (x,y), (x+w,y+h),color=color,thickness=thickness)
82-
text=f"{LABEL[class_ids[i]]}:{confidences[i]:.2f}"
82+
text=f"{LABELS[class_ids[i]]}:{confidences[i]:.2f}"
8383
# calculate text width & height to draw the transparent boxes as background of the text
8484
(text_width,text_height)=cv2.getTextSize(text,cv2.FONT_HERSHEY_SIMPLEX,fontScale=font_scale,thickness=thickness)[0]
8585
text_offset_x=x

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp