sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47511
[Bug 878864] Re: [request] want Pattern.anySize() and Pattern.anyColor() --- feature added 2018-06-25 build #28
@RaiMan, hello, I tried 【Latest available Build: 1.1.3-SNAPSHOT
2018-06-26_16:01 Travis Build 29
,sikulixsetup-1.1.3-20180626.160145-28-forsetup.jar】,after setup, I gave
it a try this morning. but it seemed to me that it still failed, error
info is 【 if
exists(Pattern("1530065699523.png").similar(0.9).anySize(),3600):
AttributeError: 'Pattern' object has no attribute 'anySize' 】. could you
give me some advice?
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/878864
Title:
[request] want Pattern.anySize() and Pattern.anyColor() --- feature
added 2018-06-25 build #28
Status in Sikuli:
Fix Committed
Bug description:
*************** implementation
as resize before search operation:
- Settings.AlwaysResize for general proportional resize
- Pattern.resize resize only for the given image
additionally:
- Settings.ImageCallback do what is needed with an image before a search op in a callback function
see docs:
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#Settings.AlwaysResize
----------------------------------------------------------------
as a general solution, Sikuli needs to know, how the image should be
rescaled.
the same image is found in different screen resolutions by Sikuli
though.
---------------------------------------------------------------------------
based on the original description of the planned Sikuli features:
anySize() was supossed to solve different resolutions problems.
But it is not yet available in Sikuli script.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/878864/+subscriptions
References