sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17340
[Question #226074]: grabbing location details of matches out of a list
New question #226074 on Sikuli:
https://answers.launchpad.net/sikuli/+question/226074
Hi,
I am trying to get the location (x,y) of a series of matches. I followed the suggestion from the Sikuli Match Documentation:
findAll(image1)
list1 = list(getLastMatches())
which now provides me with a list that prints:
print list1 =
[Match[735,298 17x17 score=1.00 target=center], Match[735,390 17x17 score=0.99 target=center], Match[827,390 17x17 score=0.99 target=center], Match[920,575 17x17 score=0.99 target=center], Match[966,390 17x17 score=0.99 target=center], Match[643,390 17x17 score=0.99 target=center], Match[781,483 17x17 score=0.98 target=center], Match[920,483 17x17 score=0.97 target=center], Match[643,483 17x17 score=0.97 target=center]]
my question is: how do i extract the location values out of that into another list? Preferably something along the lines of
[x1,y1,x2,y2,x3,y3........etc....]
Thank you for your help, this forum is brilliant and sorry if my question is a stupid one,
JD
Thank you for your help
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.