This is an interesting topic. Basically, I have an image that contains some text. How do I extract the text from the image?
I have already tried many things, but everything I do is very tedious and usually does not work. I am simply wondering if there is a fairly easy way to do this.
I have come upon this: http://sourceforge.net/projects/javaocr/. I have tried this for hours, but I cannot get it to take an Image
and turn it into a String
of text from the image.
Thank you all in advance!
You need to look into Java OCR implementations. Take a look at this question: Java OCR
Tess4J, a JNA wrapper around Tesseract engine, supports APIs that take BufferedImage, File, or image data as input, and return String as output.
You need an OCR (optical character recognizer) library or write your own. Check out this SO question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With