faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.39k stars 360 forks source link

Please Help i cant display the evaluation score after prediction #222

Open zaghdoud2019 opened 1 year ago

zaghdoud2019 commented 1 year ago

after i have predict phase i want to display the score valuation when I use the ground truth and the predicted boxes like this test = keras_ocr.evaluation.score(dataset, predicteds, iou_threshold=0.5, similarity_threshold=0.5, translator=None) I have a this error: TypeError: list indices must be integers or slices, not tuple dataset example:

image

predicted example:

image

Someone help me Please