Question #698070 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698070
Status: Open => Answered
RaiMan proposed the following answer:
--- same image in other environments
The image search used in SikuliX is based on pixel content. An image can only
be found at all, if width and height in pixels of the sample image is the same
as it is shown at time of search on the screen.
The more pixels differ, the lower the match score. The lower the match score,
the higher the risk for false positives.
Differences in pixel content in different environments are mainly produced by
differences in the rendering behavior (how is a given graphic element shown on
screen).
To minimize all the risks (besides taking care for same size) is to concentrate
the snapshot on the key elements of the image, that makes it unique on the
current screen. Have as little surrounding background (< 10-20%).
If you have the need to run your stuff in different environments, be prepared,
to have different image sets (ImagePath feature, naming convention, re-capture
on the fly, ...)
--- using text based on OCR
... is surely something you can use additionally in special situations.
But as an overall replacement for image search in my experience it is not
really useable.
In the end it also has many quirks, that you have to accept or have to
implement solutions/workarounds.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp