add area for all attributes

This commit is contained in:
Josh Hawkins 2025-05-17 10:35:16 -05:00
parent 8057106b71
commit 833eca6ab2
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class CameraState:
box[2],
box[3],
attribute["label"],
f"{attribute['score']:.0%}{' ' + str(box_area) if attribute['label'] in ['license_plate', 'face'] else ''}",
f"{attribute['score']:.0%} {str(box_area)}",
thickness=thickness,
color=color,
)

View File

@ -482,7 +482,7 @@ class TrackedObject:
box[2],
box[3],
attribute["label"],
f"{attribute['score']:.0%}{' ' + str(box_area) if attribute['label'] in ['license_plate', 'face'] else ''}",
f"{attribute['score']:.0%} {str(box_area)}",
thickness=thickness,
color=color,
)