← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #691383]: how to use OCR.readLines?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
simply so:

reg = selectRegion()
lines = reg.textLines()
for line in list:
    uprint(line)

uprint() instead of print is needed, because the read text might contain
non-ascii characters (unicode/utf-8).

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