← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236249]: How to use OCR

 

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

    Status: Open => Answered

Mark Weisler proposed the following answer:
Hi VK,
To get started with OCR you might try this Sikuli code:


myReg= Region(100,100,500,600)   

myReg.highlight(2)
myText = myReg.text()
print myText

Before running this be sure to have an application, like a Web browser,
open with lots of text visible so the Sikuli region can see it. You will
find the text stored in the variable myText.

There are several ways to use Sikuli including the IDE (integrated
development environment) but also from java and from  python scripts.
Start with IDE then search the Web for other ways to use it.

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