← Back to team overview

sikuli-driver team mailing list archive

[Question #687424]: High resolution screen captures

 

New question #687424 on Sikuli:
https://answers.launchpad.net/sikuli/+question/687424

I am using the following code to capture a screenshot of a region and save it as an image:

reg = Region(Region(277,333,129,128))
img = capture(reg) 
shutil.move(img, "/Users/Ozymandias/Desktop/1.png")

Then I pass the image to Tesseract, an OCR engine. 

Here's the issue: When I use a screenshot taken from Sikuli, Tesseract fails to recognize the text. When I take a screenshot of the exact same area using MacOS CMD+SHIFT+4 Tesseract recognizes the text. It seems like the capture from Sikuli is downsized 50%. How can I correct this?

Another detail: I need to perform the whole operation as fast as possible. I can't afford to get Sikuli to manually enter CMD+SHIFT+4 and take the screenshot like a human would.

Thanks

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