← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #240729]: Infinite loop when detecting spaces

 

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

    Status: Answered => Open

Eugene S is still having a problem:
Hi RaiMan and thank you for your answer.

Regarding the control over the direction of the step, I though to solve
this issue in the following way..  To find all gaps and memorize the
location of each one of them. Then, when I have all locations, I can map
them on the source image and thus derive the location of the actual
characters.

Regarding the gaps.. IN MY CASE, I can assume that there is only one single pixel wide gap between each pair of letters.
I completely agree that the proposed algorithm is far from efficient, however the ability to correctly and consistently recognize text will really make my automation easier. 

Regarding the other algorithm you have proposed.. I think it is similar
to the one I have explained in my question. Or did I miss something? :)

I have put some effort into looking for some info about tesseract
training however I wasn't able to make any progress in that direction.
>From what I have found (please correct me if I am wrong), it seems that
tesseract is designed to recognize handwritten text rather than printed
text. And I have really noticed that text with bolder/fatter fonts are
recognized much more accurately (with Sikuli) than just simple plain
type (for example like this one). It doesn't make any sense to me and I
would've think that printed text would be much easier to recognize.


Anyway, I know from your answers in other questions that you don't have enough experience with tesseract training so I won't ask it here. But I would like to ask your opinion on another approach I have thought of.

I believe, that I if I could do some preprocessing to a text(before
recognizing), specifically make it bolder/bigger/fatter, the recognition
will perform much better. So I thought about doing some basic image
processing in Python. I think there are image processing tools provided
by SciPy\NumPy modules. However I am not sure it will work smooth with
Jython.

Should I give that a try or it will be a waste of time?


Thanks again!
Eugene S

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