fix confidence
This commit is contained in:
parent
66b839e78f
commit
c6f0817d16
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user