🐛 Overwrite text if it exists

fix/readme-no-checkpoint
Gerber, Mike 5 years ago
parent 31bdf3e425
commit 6d2e15b623

@ -76,7 +76,7 @@ class CalamariRecognize(Processor):
line_text = prediction.sentence line_text = prediction.sentence
line_conf = prediction.avg_char_probability line_conf = prediction.avg_char_probability
line.add_TextEquiv(TextEquivType(Unicode=line_text, conf=line_conf)) line.set_TextEquiv([TextEquivType(Unicode=line_text, conf=line_conf)])
_page_update_higher_textequiv_levels('line', pcgts) _page_update_higher_textequiv_levels('line', pcgts)

Loading…
Cancel
Save