I have group of very small images (w:70-100 ; h:12-20), like the one below:
![enter image description here](https://i.stack.imgur.com/RwKpQ.png)
In those images nothing but nickname of group's member. I want to read the text from simple images, they all have one background, only nickames are different. So, what I've done with that image:
![enter image description here](https://i.stack.imgur.com/Y6Lqu.png)
tesseract::TessBaseAPI ocr;
ocr.Init(NULL, "eng");
PIX* pix = pixRead("D:\\image.png");
ocr.SetImage(pix);
std::string result = ocr.GetUTF8Text();
I have 2 problems with that:
- The
ocr.GetUTF8Text();
is working slow: 650-750ms. Image is small, why it works so long anyway? - From the image above I am getting result like: "iwillkillsm", "iwillkillsel" etc. That image is simple, and I believe tesseract gurus are able to recognize it with 100% accuracy.