sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53726
Re: [Question #687424]: High resolution screen captures
Question #687424 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687424
Status: Open => Answered
RaiMan proposed the following answer:
have you already tried with the latest Sikulix 2.0.1 and its text/OCR feature (based on Tesseract 4)?
If it works, it is surely faster than your file based solution.
text = Region(277,333,129,128).text()
Apparently you are working on a Retina display. On such displays, each image pixel is blown up to a square of 4 display pixels.
Mac's capture tool keeps this in the image, so such images are double in width and height.
SikuliX generally works with the original image pixels and hence such externally captured images have to be downsized before use (a feature contained in SikuliX).
To automatically adjust captured images on Retina displays is a feature in the newer Java versions 8+.
In your case there is no solution with older Sikuli(X) versions.
So you should upgrade to SikuliX 2.0.1 anyways ;-)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.