Fix lpr metrics and add yolov9 plate detection metric (#16827)

This commit is contained in:
Josh Hawkins
2025-02-26 07:29:34 -07:00
committed by GitHub
parent 7eb3c87fa0
commit 447f26e1b9
5 changed files with 32 additions and 20 deletions
+4
View File
@@ -302,6 +302,10 @@ def stats_snapshot(
stats["embeddings"]["plate_recognition_speed"] = round(
embeddings_metrics.alpr_pps.value * 1000, 2
)
if "license_plate" not in config.objects.all_objects:
stats["embeddings"]["yolov9_plate_detection_speed"] = round(
embeddings_metrics.yolov9_lpr_fps.value * 1000, 2
)
get_processing_stats(config, stats, hwaccel_errors)