← Back to team overview

sikuli-driver team mailing list archive

[Question #220551]: Text recognition on image after capture() and processing

 

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

Am attempting to perform text recognition on a saved image (the image does not exist on screen only in a png file)

The image has been created through the capture() command, the image path returned is then passed into a java class that greyscales the image and increases the contrast, making the image black text on a white background to improve OCR effectiveness. However I am now stumped as to how to read this saved image back into Sikuli, considering text() can only be called on a region.

If I open this image in an image viewer and then set the region to this image text recognition now works perfectly, so this definitely isn't an issue. However automating it in this fashion is not practical due to the amount of images that are processed in this way and the time required to open each one.

Thanks for your help.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.