sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27397
[Question #252495]: [error] TextRecognizer: init: tessdata folder not found at C:/Sikuli/libs/
New question #252495 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252495
I am quite new to this software however I have created the following script, when I run the script I am getting several errors, are you able to shed any light?
#from org.sikuli.scrip.natives import visio
#vision.setparameter("minTargetSize", 48)
Settings.OcrTextRead = True;
Settings.OcrTextSearch = True;
exists("1406823151150.png")
click("1406823164931.png")
if not exists("1406821026278.png"):
click ("1406821150179.png")
selectionLists = list(find("1406823583831.png").right().findAll(Pattern("1406821298032.png").exact()))
print "[log] number of listboxes found: " + str(len(selectionLists))
print "[log] number of arguments passed: " + str(len(sys.argv))
selectionList = int(0)
if sys.argv[0] == "Carrier":
selectionList = 0
if sys.argv[0] == "Service":
selectionList = 1
if sys.argv[0] == "Package":
selectionList = 2
# will use OCR if no image provided but certain elements are difficult or contain unicode which Sikuli has trouble parsing
listChoice = sys.argv[0]
if listChoice == "UPS Server": listChoice = Pattern("1406822521994.png").exact()
if listChoice == "Package": listChoice = Pattern("1406887439196.png").exact()
click(selectionLists[selectionList])
click(listChoice)
the errors I am getting are:
[log] CLICK on L(928,512)@S(0)[0,0 1920x1080]
[log] number of listboxes found: 3
[log] number of arguments passed: 1
[log] CLICK on L(1331,564)@S(0)[0,0 1920x1080]
[error] TextRecognizer: init: tessdata folder not found at C:/Sikuli/libs/
[error] Region.find(text): text search is now switched off
[error] script [ UPS server ] stopped with error in line 31
[error] FindFailed ( Text search currently switched off )
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.