From c6f0817d161a12c15722c6e83ab6eeca1b58fdf3 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Wed, 17 Jul 2024 19:19:26 +0200 Subject: [PATCH] fix confidence --- alpr_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpr_api.py b/alpr_api.py index 2181bde..4818f42 100644 --- a/alpr_api.py +++ b/alpr_api.py @@ -177,7 +177,7 @@ def convert_to_cpai_compatible(result): y_max = max(y_coords) response['predictions'].append({ - 'confidence': plate['confidence'] / 100, + 'confidence': plate['confidences'][0] / 100, 'label': "Plate: " + plate['text'], 'plate': plate['text'], 'x_min': x_min,