manual similarity setting overide Settings.MinSimilarity ?

Asked by shaihulud

Does manually setting the similarity slider for an image override the Settings.MinSimilarity=0.9 ?
ie, does only the images that haven´t been set manually apply to the Settings.MinSimilarity?

(I tried testing this and seems like it but i´d like a certain answer if possible)

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

Using the slider in the preview window in the real code (this is hidden by the thumbnails, you can check in 1.0.1 with the toggle switch in the view menu) the given image is change into a Pattern:

before: Image
"some_image.png"

after: Pattern
Pattern("some_image.png").similar(...)

So your observation is correct:
Settings.MinSimilarity=0.9 is applied internally for the search of images, that are not packed into a Pattern, whereas a Pattern defines an individual minSimilarity for that image.

BTW: resetting in the preview window the slider to 0.7 again, converts the existing Pattern back to a simple image, that then would again get the Settings.MinSimilarity=0.9

Revision history for this message
shaihulud (cal-a) said :
#2

Thanks RaiMan, that solved my question.