OCR using sikuli-api-1.2.0

Asked by Naveen Vangipurapu on 2018-07-09

I am using sikuli-api-1.2.0.jar for my test automation and I am trying to OCR text from the screen but I am not able to find a class which will enable me to extract the data. In the sikuli script I see there is a Region.text and I am trying to find a class where it will expose the OCR capability.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-07-11
Last query:
2018-07-11
Last reply:
2018-07-10
Best RaiMan (raimund-hocke) said : #1

--- sikuli-api-1.2.0.jar
wrong place here.
look: https://github.com/sikuli/sikuli-api

SikuliX has a Tesseract based OCR feature.
I am not sure, but I think sikuli-api only has some basic font recognition functions.

But it does not seem to be developed nor supported anymore.

For a Tesseract based Java library see: Tess4J (https://github.com/nguyenq/tess4j)

Thanks RaiMan, that solved my question.