Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Feb 4, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Aug 2014 at 5:01

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant