sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03484
[Question #162215]: r.getLastMatch() returns null when r=exists(pattern)
New question #162215 on Sikuli:
https://answers.launchpad.net/sikuli/+question/162215
Hi,
i am using Sikuli in my java program,on windows platform
I am using below code:
Pattern phone1 = new Pattern(imagePath + "android/imgs/Phone.png");
Region r=s.exists(phone1, 2);
if (r!=null)
System.out.println("Phone match %= "+r.getLastMatch());
Phone match %= null
& when i checked value of r it was:Match[901,333 66x31] score=0.88, target=center
Any idea why last match object is null???
Actually i have to get matched% or say Score..
As i am unable/not allowed to use r.getscore() function...
So m using it in this way... r.getLastMatch().getScore()
but this statement throws Exception(NULL POINTER)
Help me out
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.