[1.1.0 beta1] How to assure that the text features use Settings.OcrLanguage

Asked by Shengyuan Gu

***** solution (comment #3)
use
org.sikuli.script.TextRecognizer.reset()

before using any text features

----------------------------------------------------------------
The default value of Settings.OcrLanguage is "eng", any change for Settings.OcrLanguage doesn't work, even set it to a invalid value such as "adfdsfs".

Anyone know how to use other ocr language except "eng" in SikuliX ?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#2

ok, I have to check.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

You might try to use
org.sikuli.script.TextRecognizer.reset()

this is a fix available in 1.1.0-Beta1 and takes care, that after this Tesseract knows the language to use.

This will be completely revised later this year, when I reimplement the text features using Tess4J (no C++ code anymore)

Revision history for this message
Shengyuan Gu (gushengyuan2002) said :
#4

Thanks RaiMan, that solved my question.