mp-02 commited on
Commit
ad0f1c1
·
verified ·
1 Parent(s): 2a1d11c

Update cord_inference.py

Browse files
Files changed (1) hide show
  1. cord_inference.py +1 -1
cord_inference.py CHANGED
@@ -70,6 +70,6 @@ def prediction(image):
70
 
71
  for prediction, box, confidence in zip(true_predictions, true_boxes, true_confidence_scores):
72
  draw.rectangle(box)
73
- draw.text((box[0]+10, box[1]-10), text=prediction+ ", "+ confidence, font=font, fill="black", font_size="15")
74
 
75
  return d, image
 
70
 
71
  for prediction, box, confidence in zip(true_predictions, true_boxes, true_confidence_scores):
72
  draw.rectangle(box)
73
+ draw.text((box[0]+10, box[1]-10), text=prediction+ ", "+ str(confidence), font=font, fill="black", font_size="15")
74
 
75
  return d, image