Fixed Classify offsets (#9155)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-08-25 15:04:27 +02:00
1 parent d07ddc6996
commit 729dc169ba
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ def run(
# Write results
if save_img or view_img: # Add bbox to image
text = '\n'.join(f'{prob[j]:.2f} {names[j]}' for j in top5i)
annotator.text((64, 64), text, txt_color=(255, 255, 255))
annotator.text((32, 32), text, txt_color=(255, 255, 255))
# Stream results
im0 = annotator.result()