← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #668085]: Can we automate mainframe applications apart from screenshot function

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Be aware of the known weaknesses of the text feature in actual SikuliX
(Region.text())

To check wether the text you want to have can be read correctly, just
run this oneliner in the SikuliX IDE:

uprint(selectRegion().text())

this will allow you to select a region containing text and watch the
result.

take care, that at best only the area containing the text is selected.

If it is not satisfying, then you have the option to use the commandline
Tesseract directly (using stored images and subprocesses).

If you are in Java or Java aware environments, Tess4J is surely an
option, since it relies on Tesseract 3 allowing the available options to
optimize the results. Same goes for the Tesseract command.

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