← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #188121]: Inconsistency in Match.text() - OCR related

 

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

    Status: Answered => Open

Sunil is still having a problem:
Actually,

Both m.text() and Region(m).text are producing the same result and both
are acting on SCREEN instead of the match.

Here was the sample script.
========================
print "starting";

f = Finder("/Users/nanni/test-sikuli/source.png");
f.find("/Users/nanni/test-sikuli/to-extract.png");

while (f.hasNext()):

    m = f.next();
    
    print "From Region"
    print Region(m).text();
    print "From Match"
    print m.text();
    print "exists";

print "done";
========================

Output:
========================
starting

Found. Trying to extract Text.

>From Region
Question#188121 
~ 

>From Match
Question#188121 
~ 
done
========================
In both case, Question#188121  was present on SCREEN but not in "/Users/nanni/test-sikuli/source.png".

Is this expected ? If not, i could file a bug.

I am still unable to identify a mechanism to extract text from image on
file system.

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