Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions