← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #152784]: Frustrated

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Uuups, one should never be frustrated about what software is doing.

Why? Because in 99% it does what some human being has told it what to do
;-)

Ok, there are some things that influence, whether Sikuli finds something
in one case and in other cases not. The baddest idea is to play around
with similarity. It is better to find out the reason and react
accordingly.

In most cases, this helps:
- make the region to search for the image as small as possible
- similar approach: find something that is fixed and can surely be found. then search relatively to that object using the spatial operators.
- use images, that concentrate on the real content, that can surely be found (in many cases you capture some background that changes in different situations, you do not notice - but Sikuli does)

to track, what your script is doing, print the matches as long as your
script is unstable (you can see the score values afterwards - values
above 0.9 tell you, that you have good images - lower values should be
analyzed)

use Region.highlight() to give you some intermediate feedback, where
your script is searching.

Handling some FindFailed situations interactively might sometimes help
too: http://sikuli.org/docx/region.html#exception-findfailed

so many things to fight your frustration ;-)

Shortly before a nervous-breakdown you might pack your script folder
together with some representative screenshots in a zip and send it to my
private mail at  https://launchpad.net/~raimund-hocke. In all cases
until now I could help at least to come a little bit further.

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