← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264958]: Count number of same images that are horizontally parallel in the screen

 

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

eduardobedoya gave more information on the question:
Hi RaiMan, yes Im using version 1.1.0
Currently Im reading this...
http://sikulix-2014.readthedocs.org/en/latest/region.html#Region and I found this below...
"Get evenly sized parts of a Region (as rows, columns and cells based on a raster)"
So I return to this question.

Yes my grid is very even, (all matches in one row have the same m.y values)
I understand everything you comment above,
I even understand this...
-- say you have k elements per row, then the rightmost element in the n-th row is:
sortedMatches[n*k + k - 1] _____(it took me a while xD)

But I still can't understand this...
-- sortedMatches = sorted(matches, key=lambda m: m.y * 10000 + m.x)
why 10000? is this similar to the previous formula???

Does version1.1.0 new grid features override the necessity of these two
formulas above???

Thanks Advanced.

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