fix confidence

This commit is contained in:
Mathieu Broillet 2024-07-17 19:19:26 +02:00
parent 66b839e78f
commit c6f0817d16
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -177,7 +177,7 @@ def convert_to_cpai_compatible(result):
y_max = max(y_coords) y_max = max(y_coords)
response['predictions'].append({ response['predictions'].append({
'confidence': plate['confidence'] / 100, 'confidence': plate['confidences'][0] / 100,
'label': "Plate: " + plate['text'], 'label': "Plate: " + plate['text'],
'plate': plate['text'], 'plate': plate['text'],
'x_min': x_min, 'x_min': x_min,