← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673429]: how to implement text reading with SikuliX IDE 1.1.3 or 1.1.4

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
The standard language recognized is english.

You might install the language sets for other languages and then tell
SikuliX to use this language for recognition.

Since the docs are not yet ready for these OCR configuration options,
these are the steps:

1. find the folder SikulixTesseract/tessdata in your SikuliX <app-data>
folder (see docs)

2. download the languages needed from https://github.com/tesseract-
ocr/tessdata/tree/3.04.00 (only the files with .traineddata)

3. put the .traineddata files into the tessdata folder (step 1.)

4. in your script say before using OCR features:

tr = TextRecognizer.start()
tr.setLanguage("xxx")

where xxx is the shorthand for the wanted language (the letters in the
filename (step 3.) before the .traineddata)

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