← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676631]: cannot find image using find(image_path)

 

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

    Status: Open => Needs information

RaiMan requested more information:
Not a matter of resolution, this only tells the system how many pixels per inch, but the pixels itself stay the same.
try this, and you should get more detailed information about shot and images

Debug.on(3)
match = "/Users/ongyichong/Desktop/Screenshot_1544070692.png"
returnMatch = find(match)

... and please read to understand, how SikuliX works:
https://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

Another problem might be, that your shot was made on a HiDPI/Retina monitor with an external Image-Capture-Tool.
In this case, the image has double pixels in both directions. It has to be resized to 50%.

Use the SikuliX IDE to make your screenshots.

BTW:
what system?
what java?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.