Tesseract Training - a new font with only numbers

Hi, I am trying to train tesseract for a new font based on the following numbers: numbers with transparent background

All numbers are presented in png file with transparent background. If I create a file box from it, I train it, etc. - everything works fine!

Now the problem is the same situation, but I want to train tesseract based on the following image: numbers without transparent background

as you can see that the numbers are exactly the same as the positions, and so on. The only difference from image 1 is that I used a yellow background, and from that moment nothing works. I create a box file that sets the same positions as for the first image:

0 5 4 20 22 0
1 27 4 38 21 0
2 48 4 60 22 0
3 71 3 83 22 0
4 94 5 109 22 0
5 119 5 131 22 0
6 143 5 157 22 0
7 172 5 184 22 0
8 197 5 211 23 0
9 224 5 238 22 0

and then I trained the box, but the resulting .tr file is completely empty, I did not stop here and followed all the other steps. The resulting font cannot be used!

, , tesseract , ?

2016-04-16:

ImageMagick , , . tesseract , , , .... , , . , - , , ! .tr, tesseract.

, "trainingdata", tessdata tesseract , :

tesseract example.jpg output -l mg

( "" )

, , ! , , , , .... , .

tesseract, , :

Tesseract ( zip/not compression → )

+4
1

, tesseract , , , , .

+1

All Articles