ravinder0107 / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
1 stars 0 forks source link

javax.imageio.IIOException: ICC APP2 encountered without prior JFIF in Tesseract OCR #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add below Tesseract dll files in a java project 
liblept168.dll, libtesseract302.dll.
2. Add below jar files as supporting jars 
tess4j.jar, ghost4j-0.5.1.jar, jai_imageio.jar, jna-4.1.0.jar, 
junit-4.10.jar.
3.
Run this code with the attached file.

public class TestTess4J {

    public static void main(String[] args) {
        File imageFile = new File("E:\\test\\rc1.jpg");
        Tesseract instance = Tesseract.getInstance(); //

        try {
            String result = instance.doOCR(imageFile);
            System.out.println(result);

        } catch (TesseractException e) {
            System.err.println(e.getMessage());
        }
    }
}

What is the expected output? What do you see instead?
The text in the attached image.

What version of the product are you using? On what operating system?
Compiled in JDK 6. OS: Windows 7 64 bit.

Please provide any additional information below.

Original issue reported on code.google.com by smdk...@gmail.com on 26 Aug 2014 at 5:01

Attachments: