← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #671159]: How to capture image of microsoft doc and read the text?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
you need some basic Python knowledge for scripting in the IDE:

reg = Region(451,131,1000,872) 
text = reg.text()
print text

- variable names should be different than already existing names (like Region - which is a class name of SikuliX)
- results of function calls (like reg.text()) should be assigned to variables for reuse (like in print text)

OCR with SikuliX: be aware of many caveats especially recognition
quality.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.