HowTo use class Finder in Java
I am using Sikulix.jar to search images in my project. My code is as follows:
Finder f;
Match m;
Points2D coords = new Point2D.Double(-1, -1);
try {
f = new Finder(new Pattern(
f.find(
if (f.hasNext()) {
m = f.next();
}
} catch (IOException e) {}
The image to be found is just a part of the large image. I set However the coords always returns (-1, -1). But it is working perfectly when I use Screen to click target image. Any helps about the implementation? Thank you.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Yi Chai for more information if necessary.