Image Matching

Asked by Jeff_Vallis

2.0.4-2020-03-14_08:01/Mac10.15.6/Java13(64)13.0.1+9

Is there anyway to find out what the matching level is from a exists or find without looping through from matching 0.70 to 0.99

also is v_Matching 1.00 the correct syntax for exact match
v_Image = Pattern(v_Image).similar(v_Matching)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

--- exact match:
Pattern(...).exact()
which is the same as
Pattern(...).similar(0.99)

--- match score
if someRegion.exists(...):
    score = someRegion.getlastMatch().getScore()

or
match = someRegion.exists(...)
if match:
     score = match.getScore()

Revision history for this message
Jeff_Vallis (vallis-pj) said :
#2

Thanks RaiMan, that solved my question.