Add predicted text and confidence associated
Depends #36 (closed)
We need to add the associated text and confidence for each detected object.
To do so we need to add the confidences as argument of plot_attention
and get_predicted_polygons
as we need the confidence scores in get_polygon
.
We can add two keys to the dictionary describing the object:
-
text
, -
text_confidence
: the average of the confidence scores on the contour.