← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #404149]: Need to see differences from getScore()..can I save the temporary image from find() command?

 

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

    Status: Open => Answered

masuo proposed the following answer:
If you want to confirm match object on the screen when SikuliX is running, you can use highlight().
[example1:]
r = find("image.png").highlight(2)

If you want to confirm match object when SikuliX is done, you can use capture().
[example2:]
import shutil
r = find("image.png")
tempfile = capture(Region(r))
savefile = "w:\\temp\\100.png"  # w:\temp must be prepared
shutil.move(tempfile,savefile)

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