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: :
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)); write(vnc. capture( tLocked) .getImage( ), "png", new File("terminal. png")); out.println( tLocked. text()) ;
ImageIO.
System.
Therefore, when trying to read text from the first scenario, I get nothing, and from the second scenario I get: }5en:s_ 1_1:en: :
xfaaucxscs‘