How to do capture() with an getScore = 0.91 or greater?
Hi there,
I'm a newbie to Sikuli, Jython, and Python. I love the tool and how flexiable it is. I will be replacing EggPlant with Sikuli, that how good your tool is and plus I love it's open source.
So on that note, I'm trying to do a capture of a set x, y, w, h and a match of 0.91 (I've read that it's best to use 0.91 rather then 1 for pixel to pixel compare.
For example, I tried the following with failure:
#Capture the view
newarea = capture (1, 171, 1437, 668, 0.91)
print "File ", newarea
shutil.
sleep(2)
#Check the captured view
m = find(TempPath + "blah.png")
if m:
print m.getScore
else:
print "epic fail"
Result:
Traceback (most recent call last):
File "C:\DOCUME~
paging2()
File "C:\Sikuli\
shutil.
File "C:\Program Files\Sikuli\
File "C:\Program Files\Sikuli\
File "C:\Program Files\Sikuli\
at java.io.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.python.
java.lang.
I'm wondering if there is a way to set the capture to 0.91? I.e. capture (Pattern(1, 171, 1437, 668).similar 0.91)
Cheers
Shawn
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: