sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27628
[Bug 1355231] [NEW] [1.0.1] Finder with image crops match object to screen size
Public bug reported:
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(big_filePath);
f.find(new Pattern(small_filePath));
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]@S(S(0)[0,0 1366x768]) S:1.00 Target:800,475
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(2645,2004,107,108) outside any screen - subsequent
actions might not work as expected
this is fine with me.
---------------------------
my complete code:
//classpath: Sikuli-1.0.1\sikuli-java.jar
import org.sikuli.script.Finder;
import org.sikuli.script.Match;
import org.sikuli.script.Pattern;
public class Main {
public static void main(String[] args) throws Exception {
String bigfilePath = "d:/big1.jpg";
Finder f = new Finder(bigfilePath);
f.find(new Pattern("d:/big2.jpg"));
Match m = f.next();
System.out.println(m);
}
}
---------------------------
thanks in advance
:)
** Affects: sikuli
Importance: High
Assignee: RaiMan (raimund-hocke)
Status: In Progress
** Changed in: sikuli
Status: New => In Progress
** Changed in: sikuli
Importance: Undecided => High
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.0
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1355231
Title:
[1.0.1] Finder with image crops match object to screen size
Status in Sikuli:
In Progress
Bug description:
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(big_filePath);
f.find(new Pattern(small_filePath));
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]@S(S(0)[0,0 1366x768]) S:1.00 Target:800,475
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(2645,2004,107,108) outside any screen - subsequent
actions might not work as expected
this is fine with me.
---------------------------
my complete code:
//classpath: Sikuli-1.0.1\sikuli-java.jar
import org.sikuli.script.Finder;
import org.sikuli.script.Match;
import org.sikuli.script.Pattern;
public class Main {
public static void main(String[] args) throws Exception {
String bigfilePath = "d:/big1.jpg";
Finder f = new Finder(bigfilePath);
f.find(new Pattern("d:/big2.jpg"));
Match m = f.next();
System.out.println(m);
}
}
---------------------------
thanks in advance
:)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1355231/+subscriptions
Follow ups
References