exact image find multiple image

Asked by Kelvin Yip

Hi all,

I am using Sikuli 1.1.0 Beta 3 to automatically capture a region of the screen (contains some text and number). The captured image is 96 dpi with resolution 95 x 60.
Now with the capture image, I use "if exists(Pattern("xxx.png").exact, 0)" and it will match different text on the screen.
For example, 6 6 will match 6 7 and 7 6 on the screen.
Any suggestion to the problem ? I can send out the image if needed.

Thanks a lot.

Question information

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

you might send screenshots and images silently to my mail at https://launchpad.net/~raimund-hocke

might be a problem of too much even background in the images:
rule of thumb: even background towards edges < 20% of image size

20% of 95x60 is 1140
1140 / (2*95 +2*60) about 4

which means, the outer margin around the numbers should only be about 5 pixels

Revision history for this message
Kelvin Yip (kkkelvinkk) said :
#2

Hi RailMan,

Thanks for your explanation, even I don't really understand.
Now, I try to extract 2 image and compare that 2 number to see if this get better result. Will update you the result.

Can you help with this problem?

Provide an answer of your own, or ask Kelvin Yip for more information if necessary.

To post a message you must log in.