← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #232183]: [How To] set variable value from OCR numerics

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
you have to check wether Sikuli can "read" the given font.

easiest way to check in IDE:

# take care that the account balance is visible on screen
print "the number is:", selectRegion().text()

This lets you select the account balance and tries to "read" the
numbers. Watch what is shown in the message area.

It either works or does not work. In the latter case you can do nothing,
but try to mark the optimal region.

(with version 1.0.0 you have to switch on OCR in the preferences -> more
options)

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