X-1.0rc3: images consisting of only one color always found and in wrong location

Bug #808575 reported by ark
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

*********** Status with SikuliX-1.0
- works (except for solid black) just using find("image of solid color.png") (similarity is internally set to exact()
- findAll(): exact() needed: for matches in findAll(Pattern("solid.png").exact()) - otherwise you still get false positives.

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

1 sikuli x-1.0rc2
2 os x 10.6.7 64 bit
3 create a 32x32 px png, fill with any solid color (see attachment for sample); use any find operation - usually a match is found in top-left corner of screen, sometimes in random other screen locations

Tags: fkt-general
Revision history for this message
ark (arkj-sm) wrote :
Revision history for this message
RaiMan (raimund-hocke) wrote :

confirmed:

Region(0,0,600,400).find(red-32x32.png)

always matches at (120,80) no matter, what the screen content is.

(sikuli x-1.0rc3 / os x 10.6.7 64 bit)

summary: - images consisting of only one color mistakenly always found
+ X-1.0rc3: images consisting of only one color always found and in wrong
+ location
Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

This's fixed except for solid black images. If someone really needs to match a pure black image against the screen, open a new bug request then.

Changed in sikuli:
status: New → Fix Committed
milestone: none → x1.0-rc3
Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

btw, to use solid color matching, the Pattern should be set with similarity 1.0.

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

In r881(will be included in RC3), Sikuli handles this case automatically. No need to set the Pattern similarity to 1.0 anymore.

RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Low
assignee: nobody → RaiMan (raimund-hocke)
milestone: x1.0-rc3 → x1.0
RaiMan (raimund-hocke)
tags: added: fkt-general
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Low → High
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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