← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #211636]: Image test works on SikuliIDE but not with Java lib

 

Question #211636 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/211636

    Status: Open => Answered

RaiMan proposed the following answer:
If an image match shows a score of 0.7, this is a hint, that your sample
screenshot is too bad (mostly too much background).

You should learn how to make screenshots, that end up with a similarity
score above 0.85. The optimum is above 0.95.

Below 0.85 there is a great chance, to get false positives.

So try to narrow your shots to the area containing the really
significant pixels.

On the other hand it is always a contribution to reliability, robustness
and speed, to narrow the search region as much as possible.

One more thing: There are many aspects, that might lead to the
situation, that an image is found on the current system or in the
current environment but not on other systems or in other environments.
Looking as a human, you might find no differences, but on the pixel
level are differences indeed (changes in background, different
rendering, ...). In these cases you might need different image sets for
different environments, if the above approach does not help.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.