Hi Quan,

I am new bee to this tess4j stuff. I have downloaded the source from 
https://sourceforge.net/projects/tess4j/ testing it from eclipse.when i ran 
the sample app

    public static void main(String[] args) {
        File imageFile = new 
File("C:\\tesseract-ocr\\JNA\\Tess4J\\eurotext.png");
        //File imageFile = new File("C:\\tesseract-ocr\\H1B.jpg");
        
        Tesseract instance = Tesseract.getInstance();  // JNA Interface Mapping
        // Tesseract1 instance = new Tesseract1(); // JNA Direct Mapping

        try {
            String result = instance.doOCR(imageFile);
            System.out.println(result);
        } catch (TesseractException e) {
            System.err.println(e.getMessage());
        }catch (Exception ex) {
            System.err.println(ex.getMessage());
        }
    }


When i  followed the instruction i got the following error. I am more into 
Java but not on to the c++ side to figure out the issue. Please let me 
know, how to resolve this.


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x173c0fe9, pid=8136, 
tid=4576
#
# JRE version: 6.0_30-b12
# Java VM: Java HotSpot(TM) Client VM (20.5-b03 mixed mode windows-x86 )
# Problematic frame:
# C  [libtesseract302.dll+0x70fe9]
#
# An error report file with more information is saved as:
# C:\SAS2.0\Tess4Java\hs_err_pid8136.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Could you please let me know, where i am going wrong. Thanks!

Regards,
Kamal.


On Sunday, August 22, 2010 10:35:26 PM UTC-4, Quan Nguyen wrote:
>
> A JNA-based wrapper for Tesseract OCR DLL, the library provides 
> optical character recognition (OCR) support for: 
>
>     * TIFF, JPEG, GIF, PNG, and BMP image formats 
>     * Multi-page TIFF images 
>     * PDF document format 
>
> http://tess4j.sf.net

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to