Get text from image

60 views
Skip to first unread message

Deus Ralph

unread,
Apr 5, 2021, 11:10:57 AM4/5/21
to Marvin Project
Can i get the text content instead of find text region ?

thanks.

Gabriel Ambrósio Archanjo

unread,
Apr 6, 2021, 5:25:55 AM4/6/21
to Marvin Project
Hi,

This is a different kind of task. To get the content you need to perform Optical Character Recognition (OCR).

But OCRs work much better with images only having text. My recommendation:

- find the text regions
- segment them
- submit to OCR.

Take a look at Tesserract OCR and Tess4j (Tesseract Java Wrapper). References:

https://github.com/tesseract-ocr/tesseract
https://www.javacodegeeks.com/2020/08/ocr-in-java-with-tess4j.html
Reply all
Reply to author
Forward
0 new messages