java vision related setting

Asked by aobahou on 2018-05-21

Hi RaiMan,

Thanks for your great work of sikulix and sharing it to us.

I am using sikulix in my project and have some problem with the region.text() method.
I have read the related code and I am wondering how can I set a whitelist and how can I set the text() function just read a character and how can I can train the ocr engine with my own data. Is there any vision related setting that I can use?

I have tried replace the eng.traineddata in the resource folder but it doesn't work and I have tried the vision.setsparameter in tessract way but it doesn't work too.

Thanks for the reading and waiting for your reply.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Best RaiMan (raimund-hocke) said : #1

Since the API in SikuliX is still at the Tesseract2 level, you will not be able to get anything done using the API, that relates to Tesseract 3. The implementations is as it is and we have to live with it.

Since you seem to be familiar with Java, the best option for you is to look at the package Tess4J ( and use it in your Java or Jython code instead of Region.text() just using images captured on the fly.

At the time, when I will rewrite the text-feature with version 2, I will use Tess4J as well.

aobahou (aobahou) said : #2

Thanks RaiMan,

That really solved my problem, I will Tess4J.

aobahou (aobahou) said : #3

Thanks RaiMan, that solved my question.