Make sure you setDatapath to the parent directory of your tessdata folder.

On Thursday, June 8, 2017 at 1:20:03 AM UTC-5, Oscar David Catzim Pat wrote:
>
> Exception in thread "main" java.lang.Error: Invalid memory access
> at com.sun.jna.Native.invokePointer(Native Method)
> at com.sun.jna.Function.invokePointer(Function.java:470)
> at com.sun.jna.Function.invoke(Function.java:404)
> at com.sun.jna.Function.invoke(Function.java:315)
> at com.sun.jna.Library$Handler.invoke(Library.java:212)
> at com.sun.proxy.$Proxy0.TessBaseAPIGetUTF8Text(Unknown Source)
> at net.sourceforge.tess4j.Tesseract.getOCRText(Unknown Source)
> at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
> at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
> at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
> at ocr_prueba.OCR_prueba.main(OCR_prueba.java:33)
> Error opening data file ./tessdata/eng.traineddata
> Please make sure the TESSDATA_PREFIX environment variable is set to the 
> parent directory of your "tessdata" directory.
> Failed loading language 'eng'
> Tesseract couldn't load any languages!
> C:\Users\david\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: 
> Java returned: 1
>
>
>
> A que se debe, Alguien que pueda orientarme.
>
> Gracias. 
>

-- 
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/6e6a52bf-5d9a-4c81-a3b4-80e4de9df4f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to