← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #665568]: Possible OCR improvement through screen capture change?

 

Question #665568 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665568

    Status: Open => Answered

RaiMan proposed the following answer:
A first thing to note:
You are working on a Retina display, which doubles the pixels both in width and height when showing the image. The Mac image capture tool returns the shown pixels and not the original image pixels. Hence Mac captures have first to be downsized to 0.5, to use them with the SikuliX search feature.
With newer java releases, internally with Robot capture this "Retina effect" is compensated: as a result you get the "real" pixels.
your case:
--- Mac Retina capture: 476x102
--- SikuliX capture (Java AWT Robot): 236x50

The slight differences I guess are because of 2 different manual
captures.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.