简体   繁体   中英

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

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.

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

Settings.OcrTextSearch

Settings.OcrTextRead

Put them true and it should work :)

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

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

适用于1.1.x的Sikulix IDE应用程序,首选项,选项,允许OCR

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM