I have a java based application running on Ubuntu 13.04 , but sikuli fails to extract the exact text !

Asked by Mayur Sonukale

Dear Sikuli Team ,
I have a java based application running on Ubuntu 13.04 , but sikuli fails to extract the exact text !
Does sikuli Text rendering feature uses specific font?
Is there any way to tell sikuli about the font used with the application so text rendering is accurate?

Thanks,
Mayur Sonukale

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Currently there are no options in this direction.

... it either works or not :-(

At least this: The region, where the text should be read, should be as narrow as possible and should contain only one line of text.
You might check the bad reads for some rules, that you can compensate.

If you have a chance to somehow change the font of the running app ( at least make it larger),then this might help.

Revision history for this message
Mayur Sonukale (mayur-ss) said :
#3

Hi RaiMan ,

Thanks for your prompt reply , I really appreciate that !

Here are some more queries for you and my observation after testing the app using sikuli :

1] ... it either works or not :-(
Any thoughts on standard (or specific) font that sikuli renders accurate?

2] You might check the bad reads for some rules, that you can compensate.
After testing , I have observed that text rendering is accurate if we avoid combination of numbers,characters like '_' or '-' and uppercase.

Thanks again for your help.

- Mayur Sonukale

Revision history for this message
RaiMan (raimund-hocke) said :
#4

at 1.
standard serif or sans-serif fonts should normally work with a font size >= 12 and <= ??? (not tested)
when converting the test region to greyscale, the higher the contrast between background and text the better the result
... but one has always to check currently

at 2:
yes ;-)

... and you might find, that in some cases either some spaces are ignored or even one is inserted where you do not expect one

Can you help with this problem?

Provide an answer of your own, or ask Mayur Sonukale for more information if necessary.

To post a message you must log in.