Turn Image into Text - Java
Solution 1
You need to look into Java OCR implementations. Take a look at this question: Java OCR
Solution 2
Tess4J, a JNA wrapper around Tesseract engine, supports APIs that take BufferedImage, File, or image data as input, and return String as output.
Solution 3
You need an OCR (optical character recognizer) library or write your own. Check out this SO question.
Dylan Wheeler
I grew up in the small town of Bow, NH, and graduated summa cum laude from the University of New Hampshire with bachelor's degrees in information technology and philosophy. I'm an entrepreneur at heart and founded two EdTech startups. ecoText's mission is to become the ultimate collaborative learning tool while delivering affordable digital textbooks to students. I helped the company raise over $650,000 in funding. In high school, I founded Triumph Software to launch a professional development management tool, Loggit. The app has since served over 500 educators across New Hampshire and tracked more than 100,000 professional development hours. When I'm not tackling challenging problems, I enjoy writing, photography, and building deep interpersonal relationships while pondering my place in the universe.
Updated on May 10, 2020Comments
-
Dylan Wheeler almost 4 years
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 aString
of text from the image.Thank you all in advance!