← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268915]: Create Image on the fly

 

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

    Status: Open => Answered

Eugene S proposed the following answer:
If you already have an image captured with something like this:

capturedImage = capture(someRegion)

you can create a Pattern from it:
pattern = Pattern(capturedImage).similar(.95).targetOffset(x, y)

You can then use the Pattern object with Region class:

reg = Region()
reg.find(pattern)

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