image-processingocrtesseract

How to extract the text coordinates in an image using tess4j


I'm trying to figure out how to get the coordinates and word rect in a text image after tess4j performs the OCR. i'm a beginner so can somebody please break it down for me? Much appreciated.


Solution

  • Tess4J's unit tests include examples for obtaining bounding boxes for recognized words. The code is similar to Tess4J: How to use ResultIterator?.