[check] Finder() shows lower similarity score than same image combination on screen

Bug #1241367 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

**** the finding

I checked your example with version 1.0.1 and indeed found a strange behavior:
Everything works as expected, but using Finder() directly with the captured image reports a similarity score of 0.57, whereas having the image displayed on the screen with a viewer and using normal screen find op Sikuli reports a similarity score of 0.88.

------------------------------------------------------------------

I am using the latest 64-bit Sikuli IDE on 64-bit Win7. It seems that Finder always uses exact find, ignoring my similarity setting in Finder.find(). To demonstrate this, I have my captured.png file displayed 1x1 on the screen and run the following simple script:

finder = Finder( "captured.png" )
finder.find( "captured.png", 0.7 )
if not finder.hasNext():
    print( 'Can not find the orginal image itself by Finder' )
finder.find( "target.png", 0.7 )
if not finder.hasNext():
    print( 'Can not find the target image by Finder' )
if not exists( "target.png" ):
    print( 'Can not find the target image on screen' )

The result is:

Can not find the target image by Finder

In another word, the target.png can be found on screen, but not in the capture.png. The capture.png can find itself.

What have I done wrong?

RaiMan (raimund-hocke)
summary: - [1.0.1] Finder() shows lower similarity score as same image combination
- on screen
+ [1.0.1] Finder() shows lower similarity score than same image
+ combination on screen
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
milestone: 1.1.0 → 1.2.0
RaiMan (raimund-hocke)
summary: - [1.0.1] Finder() shows lower similarity score than same image
+ [check] Finder() shows lower similarity score than same image
combination on screen
Changed in sikuli:
milestone: 2.0.0 → 2.0.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.