← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676036]: Trying to extract Date from the region and getting garbage values

 

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

    Status: Open => Answered

masuo proposed the following answer:
The extract result changes depending on the region surrounding characters.
I recommend you to examine what region is suitable to extract characters.

I tested this code by SikuliX1.1.4.
[example as python:]
tr = TextOCR.start()
tr.setLanguage("eng")
while True:
    r = selectRegion()
    s = r.text()
    App.setClipboard(s)
    popup(s)
    ans = popAsk("continue?")
    if ans == False:
        break

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