I mainly develop under windows and have used the emgu cv port and one of the tesseract c# ports (Charles Weld). Both lack some features so I've build C++ libraries to better support pageiterators (and with the especial hope that bold and italic in v5 will someday work).
I'm finding that the C++ implementations are 3 or 4 times slower than the equivalent code written in c#. The same is true if I have a C++ application and if I use static libraries or dlls for Tesseract.
I have imported Tesseract and Leptonica using VCPKG.
My code in all test cases resolves to the below or the c# equivalent:-
tesseract::TessBaseAPI* tessApi = new tesseract::TessBaseAPI();
retval = tessApi->Init(NULL, "eng");
tessApi->SetPageSegMode(tesseract::PSM_SINGLE_BLOCK);
Pix* image = pixRead(argv[1]);
tessApi->SetImage(image);
tessApi->Recognize(0);
char* text = tessApi->GetUTF8Text();
tessApi->End();
delete tessApi;
I have no idea where to look here and would appreciate any help.
Iain