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

22,306

Solution 1

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...

Solution 2

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

Share:
22,306
Christopher Lawless
Author by

Christopher Lawless

My Github : https://github.com/lawlessc Blog : http://this-better-work.blogspot.com/

Updated on May 31, 2020

Comments

  • Christopher Lawless
    Christopher Lawless almost 4 years

    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.

  • Josh Graham
    Josh Graham about 8 years
    Thank you for giving the full path org.sikuli.basics.Settings
  • Jeutnarg
    Jeutnarg almost 7 years
    also make sure to have checked Pack 3 while installing - otherwise even this won't work