Is TESSDATA_PREFIX pointing to tessdata directory ? It should point to 
tessdata directory where it can find traineddata file.

Regards
PD

On Wednesday, March 11, 2020 at 1:10:13 AM UTC+5:30, Jeremiah wrote:
>
> I am getting this error when running some userbot java code on my Win10 
> machine which utilizes tesseract for extracting words from the screen. I 
> have set the environmental variable TESSDATA_PREFIX to C:\Program 
> Files\Tesseract-OCR
>
> Also when I run the, tesseract --version command this is what returns:
> tesseract v5.0.0-alpha.20191030
>  leptonica-1.78.0
>   libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : 
> libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
>  Found AVX2
>  Found AVX
>  Found FMA
>  Found SSE
>  Found libarchive 3.3.2 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 liblz4/1.7.5
>
> When I run tesseract --list-langs this is what returns:
> List of available languages (2):
> eng
> osd
>
> This is the full error:
> Failed loading language 'eng'
> Tesseract couldn't load any languages!
> Exception in thread "main" java.lang.Error: Invalid memory access
> at net.sourceforge.tess4j.TessAPI1.TessBaseAPIRecognize(Native Method)
> at net.sourceforge.tess4j.Tesseract1.getWords(Tesseract1.java:672)
> at org.sikuli.script.Finder$Finder2.doFind(Finder.java:688)
> at org.sikuli.script.Finder$Finder2.find(Finder.java:617)
> at org.sikuli.script.Finder.findText(Finder.java:334)
> at org.sikuli.script.Finder.findWords(Finder.java:351)
> at org.sikuli.script.Region.doFindText(Region.java:3083)
> at org.sikuli.script.Region.findWords(Region.java:2829)
> at org.sikuli.script.Region.collectWords(Region.java:4980)
> at org.sikuli.script.Region.collectWordsText(Region.java:4985)
>
> Any idea on how to fix this?
>

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/764bb16d-0cfc-4bec-bc89-9ebed89830bb%40googlegroups.com.

Reply via email to