[Java] getLastMatch() returns null -- has to be used with last searched region
Asked by
Saorabh Singh
Hi,
i am using Sikuli in my java program,on windows platform
I am using below code:
Pattern phone1 = new Pattern(imagePath + "android/
Region r=s.exists(phone1, 2);
if (r!=null)
System.
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(
but this statement throws Exception(NULL POINTER)
Help me out
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:
To post a message you must log in.