Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

text recognition (OCR) is switched off in Sikuli when using java

Tags:

java

ocr

sikuli

Has anyone got the OCR function Region.text() working in Sikuli with java?

I keep getting this as output

Region.text: text recognition is currently switched off

and I can't find anyway to turn this feature on in java.

like image 779
Christopher Lawless Avatar asked Dec 06 '22 04:12

Christopher Lawless


2 Answers

Sikuli has Settings class (org.sikuli.basics.Settings) that has options:

Settings.OcrTextSearch

Settings.OcrTextRead

Put them true and it should work :)

P.S. Actually I don"t know why are they by default false...

like image 66
ivan25 Avatar answered Dec 08 '22 16:12

ivan25


If you're using Sikulix IDE app for 1.1.x, go to Preferences, more options..., you should enable allow OCR.

Sikulix IDE app for 1.1.x, Preferences, options, allow OCR

like image 26
kenorb Avatar answered Dec 08 '22 17:12

kenorb