← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210980]: "First find" orientation

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
The Sikuli find feature strictly uses the similarity score, to decide internally which of more than one matches in the given region is returned.
Since the internally used OpenCV templateMatch feature scans the region from top left to bottom right (no way to change that at the function level, one would have to invert the pixel matrices before), it is rather likely, that you get a match near the top left (not necessarily the first possible from your guessing).
You can use Region.findAll(), to get all matches in the region and sort the resulting list with any aspect you want (see docs).

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