ex0b1t
ex0b1t

Reputation: 1342

How to locate text on a buffered Image

I need to analyse a Buffered Image and locate the X and Y coordinates of a certain word or phrase. How will I accomplish this, where should a start. I have taken a look at some OCR libraries, but the ones I tried only provide the text and no location where the text can be found.

If you have any advice, it would be appreciated.

Upvotes: 0

Views: 1846

Answers (1)

nguyenq
nguyenq

Reputation: 8345

You can check hOCR output or ResultIterator object of Tesseract to obtain recognized word coordinates. Look at the test cases of Tess4J, a Java JNA wrapper of Tesseract API, for examples with BufferedImage.

Upvotes: 2

Related Questions