Finder class clips source image to screen size
i am using sikuli-java to test whether one image exists within another (bigger) image. neither of the two images are on the attached physical monitor. most likely they have nothing to do with the desktop.
Finder f = new Finder(
f.find(new Pattern(
Match m = f.next();
this works fine except for once scenario:
* the small-image EXISTS within the big-image AND
* the small-image is LARGER than the dimensions of the attached MONITOR.
in that case the 'Match' object gets clipped at the monitor dimension boundary.
M[234,182 1132x586]
Please note that 234+1132=1366 and 182+586=768
-------
in another scenario, i tried finding something well outside the monitor's dimension, but of a rather small size. in that case Sikuli gave an suppressible but logical error:
[error] Region(
this is fine with me.
-------
my complete code:
//classpath: Sikuli-
import org.sikuli.
import org.sikuli.
import org.sikuli.
public class Main {
public static void main(String[] args) throws Exception {
String bigfilePath = "d:/big1.jpg";
Finder f = new Finder(
f.find(new Pattern(
Match m = f.next();
System.
}
}
-------
thanks in advance
:)
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 Abhishek Ganguly for more information if necessary.