sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12875
Re: [Question #207372]: Create Region from Match/Speeding up Searches!
Question #207372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/207372
Status: Open => Answered
RaiMan proposed the following answer:
Ok, you have some reference image (like the Sikuli logo on this page top
left.
To get a base match, you first have to find this image:
ref = find(reference_image)
now you can calculate offsets
cards = [ref.offset(Location(x,y)), ref.offset(Location(x,y)) etc etc]
each card is a region having its top left corner relocated adding the x and y values to ref's x and y.
They have the same size as the reference_image.
If it is possible, to send me a screenshot (mail at
https://launchpad.net/~raimund-hocke), helping would be easier.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.