← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268741]: Accessing different language pack using Tesseract

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- Under Settings i could see only Settings.OcrTextSearch,Settings.OcrTextRead .
where did you look?

here?: http://nightly.sikuli.de/docs/index.html

this should work:

Settings.OcrLanguage = "otherLanguage"

import org.sikuli.script.TextRecognizer as TR
TR.reset()

otherLanguage must be according to the rules of Tesseract and the stuff should be in folder
<SikulixAppData>/SikulixTesseract/tessdata

SikulixAppData:
http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html#some-
general-aspects

--- even the english characters(lowercase) are not read exactly
this might well be depending on font characteristics --- you have to live with it

... or produce traineddata using the Tesseract tools and apply them to
SikulixAppData

... but still for all thees preparation steps there is no special
support in SikuliX.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.