Activity log for bug #1740421

Date Who What changed Old value New value Message
2017-12-28 19:04:13 Julian bug added bug
2017-12-28 19:04:13 Julian attachment added distorted.png https://bugs.launchpad.net/bugs/1740421/+attachment/5028512/+files/distorted.png
2018-03-05 17:23:38 RaiMan sikuli: status New In Progress
2018-03-05 17:23:56 RaiMan sikuli: importance Undecided High
2018-03-05 17:23:59 RaiMan sikuli: assignee RaiMan (raimund-hocke)
2018-03-05 17:24:03 RaiMan sikuli: milestone 1.1.2
2018-03-05 17:25:36 RaiMan summary Region not captured correctly in VNC session [1.1.1] Region capture not correct: vnc.capture(someRegion) --- workaround
2018-03-05 17:28:39 RaiMan description Sikuli 1.1.2-20171218.172518-66 OS: Windows Embeded Hi, I'm trying to read the text from a specified region, but what I've noticed is that, when I'm trying to see what's in that actual region, and capture that image, it becomes distorted. If the region is higher than 185px, the image is elongated (second image in the screenshot). If the region has the hight lower than around 185px, the whole text is messed up, and upside down too (the last image in the screenshot). This is the code I've used: Region tLocked = vnc.set(new Region(9, 170, 240, 185)); ImageIO.write(vnc.capture(tLocked).getImage(), "png", new File("terminal.png")); System.out.println(tLocked.text()); Therefore, when trying to read text from the first scenario, I get nothing, and from the second scenario I get: xfaaucxscs‘}5en:s_1_1:en: : problem: image is elongated or even turned up-side down ----------------- workaround from comment #4 I have found a way to bypass this issue: BufferedImage croppedImage = vnc.capture().getImage().getSubimage(xAxis, yAxis, width, height); ImageIO.write(croppedImage, "png", new File("tempRead.png")); ... or some other means, that crops the needed region image from a fullscreen capture. ------------------------------------ Sikuli 1.1.2-20171218.172518-66 OS: Windows Embeded Hi, I'm trying to read the text from a specified region, but what I've noticed is that, when I'm trying to see what's in that actual region, and capture that image, it becomes distorted. If the region is higher than 185px, the image is elongated (second image in the screenshot). If the region has the hight lower than around 185px, the whole text is messed up, and upside down too (the last image in the screenshot). This is the code I've used: Region tLocked = vnc.set(new Region(9, 170, 240, 185)); ImageIO.write(vnc.capture(tLocked).getImage(), "png", new File("terminal.png")); System.out.println(tLocked.text()); Therefore, when trying to read text from the first scenario, I get nothing, and from the second scenario I get: xfaaucxscs‘}5en:s_1_1:en: :
2018-03-06 15:03:17 RaiMan sikuli: status In Progress Fix Committed
2018-03-06 15:03:20 RaiMan sikuli: importance High Critical
2018-03-06 15:05:04 RaiMan summary [1.1.1] Region capture not correct: vnc.capture(someRegion) --- workaround [1.1.1] VNC: Region capture not correct: vnc.capture(someRegion) --- fixed 1.1.2 2018-03-06 build#120