SarahData
SarahData

Reputation: 809

OpenCV 3.02 + text module + Tesseract 3.05 runtime error: Tesseract not found

I correctly installed OpenCV 3.2 using cmake to generate it from source code as in this link, installed Tesseract 3.05 and leptonica from here. Both work correctly on these sample example RedEyeRemover for OpenCV and opencv-tesseract for testing both together, target project x64 VS2017. But then when applied to end-to-end text recognition demo (Platform toolset VS2015 v140) provided by opencv, I have no error in compilation but get tesseract not found in runtime.

Tesseract not found

    double t_r = (double)getTickCount();
    Ptr<OCRTesseract> ocr = OCRTesseract::create();
    cout << "TIME_OCR_INITIALIZATION = " << ((double)getTickCount() - t_r) * 1000 / getTickFrequency() << endl;
    string output;

It occurs at OCRTesseract::create() level.

What can be the reason if I didn't get any compilation error? It's linked to opencv_text module.

Upvotes: 1

Views: 562

Answers (1)

sturkmen
sturkmen

Reputation: 3550

just posting an answer stating there is some practical information in chat session about compiling leptonica tesseract and OpenCV

Upvotes: 1

Related Questions