Question #684964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684964

Description changed to:
------------------- so do not use it

---------------------------------------------------------------

Hello all,
with last  version of Sikulix :
1.1.4-SNAPSHOT-#393-2019-10-10_16:07/Windows10.0/Java8(64)1.8.0_221-b27
When I try to run this script (that is used t find the best OCR setting for an 
image):

textOCR = TextOCR.start() 
i=0
img=selectRegion()
while i<14:
    textOCR.setPSM(i)
    print "i="+str(i) +", text=" +"\n" + img.text().encode('utf-8')
    i=i+1
textOCR.setPSM(3)#return to default

I have this error:
[error] script [ OcrSettingTEst ] stopped with error in line 6
[error] org.sikuli.script.SikuliXception ( org.sikuli.script.SikuliXception: 
fatal: TextRecognizer: setPSM(0): needs OSD, but no osd.traineddata found in 
tessdata folder )
[error] --- Traceback --- error source first
line: module ( function ) statement 
6: main (  <module> )     textOCR.setPSM(i)
[error] --- Traceback --- end --------------

I tested with a rather old version:
1.1.4-SNAPSHOT-#287-2019-04-18_07:09/Windows10.0/Java8(64)1.8.0_221-b27
On the same script and image and the output is as expected (text extracted from 
the image with all the 13 different settings.

Between switching between the version I deleted the 
c:\Users\Myself\AppData\Roaming\Sikulix 
folder just to avoid doubts and used Jythonb 2.7.1 standalone

Any hint to overcome this problem?
Thanks in advance!
Matteo
P.s BTW, the current version of tesseract inside Sikulix is 3 or 4?
...I found this in the file versionchanges.txt of the downloaded package:
Version 4.4.0 (13 July 2019)
- Upgrade to Tesseract 4.1.0 (5280bbc)
- Upgrade to Leptonica 1.78.0 (lept4j-1.12.2)
- Update dependencies

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to