Calamari-OCR / calamari

Line based ATR Engine based on OCRopy
Apache License 2.0
1.04k stars 209 forks source link

Characters coordinates #315

Open gdabhishek opened 2 years ago

gdabhishek commented 2 years ago

Hi @ChWick / @andbue,

How can I get the x1, y1, x2, y2 coordinates of each character, I need them for post-processing.

Thank You

andbue commented 2 years ago

If you're working with PAGE XML, you can set --output_glyphs to produce individual characters with coordinates. Otherwise, have a look at https://calamari-ocr.readthedocs.io/en/latest/doc.predicting.html#extended-prediction-data