sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19067
[Question #231864]: find and findAll don't return the same score
New question #231864 on Sikuli:
https://answers.launchpad.net/sikuli/+question/231864
Hello,
---------------------------------------------------------------------
# This is my code
cs = Pattern("img.png").similar(0.44)
e = exists(cs)
print "e:", e
f = find(cs)
print "f:", f
lfa = findAll(cs)
for fa in lfa:
print "fa:", fa
---------------------------------------------------------------------
This is the result :
e: M[862,823 65x10]@S(0)[0,0 1920x1200] S:0,79 Center:894,828
f: M[862,823 65x10]@S(0)[0,0 1920x1200] S:0,79 Center:894,828
fa: M[152,849 65x10]@S(0)[0,0 1920x1200] S:0,45 Center:184,854
fa: M[1146,344 65x10]@S(0)[0,0 1920x1200] S:0,45 Center:1178,349
fa: M[177,344 65x10]@S(0)[0,0 1920x1200] S:0,45 Center:209,349
fa: M[242,30 65x10]@S(0)[0,0 1920x1200] S:0,45 Center:274,35
---------------------------------------------------------------------
This is my question :
You can see that the score of similarity for the match object return from the functions find and exists are 0.79.
But the score of similarity from the function findAll is 0.45
When I click on the image in the IDE, I find 4 images found with a score of 0.45 but none image with a score of 0.79.
I deduce that the IDE use the findAll function to preview the correspondance.
Is there any option to have the same score with all this functions or is it a bug ?
Thanks.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.