Question #694607 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/694607
Simon Plivav gave more information on the question:
Just to also give this information...
The described issue with pat.resize() and reg.find(pat) does *not* occur
if I am scaling up, i.e. when I provide resizing values >=1, even as the
SikuliX documentation writes that pat.resize() only takes arguments
between 0 and 1!!!
Here the code that finds matches after upscaling the search pattern, and
that works:
pat = Pattern("1608539949576.png") # a pattern / search image of 676x41
pat.similar(0.3)
booContinue = True
numPatternScalingFactor = 1.0
numScorePrev = 0
while booContinue:
numPatternScalingFactor+=0.005
pat.resize(numPatternScalingFactor)
numScore = SCREEN.find(pat).getScore()
if numScore<numScorePrev or numPatternScalingFactor>1.50:
booContinue = False
print(numScorePrev)
print(numPatternScalingFactor)
numScorePrev = numScore
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp