I was also facing this issue which was due to the line

Pointer utf8Text = TessAPI1.TessBaseAPIRect(handle, buf, bytespp, bytespl, 
0, 0, 1024,  800);

The above code will work only for image size of 1024wx800h

I have modified the code as below to make it work for all image sizes and 
solved the issue of VM crash.

*Pointer utf8Text = TessAPI1.TessBaseAPIRect(handle, buf, bytespp, bytespl, 
0, 0, bufferedImage.getWidth(),  bufferedImage.getHeight());*


       
       

Regards,
Rahul

On Tuesday, April 17, 2012 8:44:14 AM UTC+5:30, Quan Nguyen wrote:
>
> A JNA-based wrapper for Tesseract OCR 3.02 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
>
> This version is still in early beta development; as such, it has rough 
> edges and not undergone thorough testing. Any feedback/comment/suggestion 
> is welcome.
>
> 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

--- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to