sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26522
Re: [Question #250592]: Cannot find image intermittently
Question #250592 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250592
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
Generally, I see no reason Sikuli image detection will behave inconsistently. However, you might want to have a look at your script as a whole and answer these questions:
1. Does the image, you are trying to detect, is always on the screen or does it appear as a result of some other action? For example, when you click on link, the screen changes and the image you are trying to detect appears.
2. If the answer to the previous question is "yes", check your timing. It doesn't take much time to scan the screen for patterns, so there is a chance you are looking for the image before it actually appears on the screen.
3. Are you sure these images are all similar. Just to be sure, take screenshots of one detected as expected and one that was not detected and zoom into them as much using mspaint. Check for differences.
4. Try to highlight the detected region to see if the pattern is a 100% match. More about highlight here: http://doc.sikuli.org/region.html#Region.highlight
Hope that helps,
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.