Yes, increase memory for the JVM, something like:

java -Xms128m -Xmx512m -jar yourprogram.jar

Take a look at VietOCR, a Java GUI frontend for Tesseract 2.03 OCR
engine.

http://vietocr.sf.net

On Feb 9, 3:07 pm, Mike <[email protected]> wrote:
> I have the following code in Java running the prebuilt tesseract
> windows exe v2.01  (from the code repository) in a seperate process:
>
> Process p = Runtime.getRuntime().exec( "c:\tess\tesseract.exe " +
> fileLocation + " " + outputFileLoc);
>
> fileLocation contains a tif file that is uncompressed, and is about
> 1mb in size.
>
> I get the following in the log file:
>
> Tesseract Log Text:
> Tesseract Open Source OCR Engine
> Image has -1 bits per pixel and size (2528,3300)
> Resolution=1
> IMAGE::read:Error:Out of memory
> Tessedit:Error:Out of memory:Read of image C:\DOCUME~1\Mike
> \LOCALS~1\Temp\6737450876.TIF
> Signal_exit 29 ABORT. LocCode: 3  AbortCode: 2
>
> The desktop has 3+gb of ram.
>
> Is this a problem with Java too little memory to the process and
> tesseract seeing that it is hitting that max, or is it Tesseract
> hitting some sort of internal ceiling? What can i do to fix this?
--~--~---------~--~----~------------~-------~--~----~
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