1

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.

12
  • i want to try help you step by step
    – sturkmen
    Aug 17, 2017 at 13:07
  • ok please create the chat room and put the link, as I don't know how to do.
    – SarahData
    Aug 17, 2017 at 13:09
  • as i know it will be available after some comments
    – sturkmen
    Aug 17, 2017 at 13:12
  • Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) Found JPEG: C:/Users/Jihed Mestiri/Anaconda2/Library/lib/jpeg.lib Found ZLIB: C:/Users/Jihed Mestiri/Anaconda2/Library/lib/z.lib (found version "1.2.8") Found PNG: C:/Users/Jihed Mestiri/Anaconda2/Library/lib/png.lib (found version "1.6.17") Found TIFF: C:/Users/Jihed Mestiri/Anaconda2/Library/lib/tiff.lib (found version "4.0.6") Found PkgConfig: C:/cygwin64/bin/pkg-config.exe (found version "0.29.1") Checking for module 'libwebp' No package 'libwebp' found Configuring done I couldn't put all the output
    – SarahData
    Aug 17, 2017 at 13:15
  • I don't know how it's getting them from Anaconda.. I cannot remove that?
    – SarahData
    Aug 17, 2017 at 13:20

1 Answer 1

1

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

1
  • Thank you for your help in the chat room!Now, tesseract3.05.01 opencv3.2 and leptonica1.74.7 are working all together. However, the project I have a problem in, which is same as text-example-end_to_end_recognition sample, didn't work for me when executing it from its .exe file (closes directly after running it)
    – SarahData
    Aug 18, 2017 at 22:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.