How to build OpenCV 3.2 Text Module with Tesseract 4.0?
I am new to OpenCV & Tesseract and intend to use cv2.text for text detection and recognition.
I have successfully and separately built OpenCV 3.2.0 with its contrib modules and Tesseract-OCR 4.0.0-dev by Visual Studio 2015 under 64-bit Windows 10. To build OpenCV with Tesseract-OCR, CMake requires the 'include' files from Tesseract-OCR but it wasn't in my Tesseract-OCR 4 build output. Can anyone help to advise how can I get the Tesseract-OCR 'include' files?
Finally, I managed to compile it. Checked text\FindTesseract.cmake, then added paths to header and lib files.
hi ccm2016 i i'm stuck in Tesseract-OCR 'include' folder and lib like you . can you tell me how to get it in Tesseract 4.0?. Im try to include api folder and tesseract305.lib but this is not work. Sorry for my bad english Thank you so much !
where specifically did you edit the paths of the header and lib files to? Then did you simply run make on that FindTesseract.cmake file? my tesseract 4.0 was built in my HOME directory @ccm2016
I have the same problem. I've used the pre-compiled version of Tesseract 4.0. There isn't any include file. Please, @ccm2016, where did you find the header files? I'm able to compile and run text module of OpenCV 3.2 but without using Tesseract
@bburider I built Tesseract 4.0.0a from source.. Then, I copied all the header files to ~\tesseract\include\tesseract and \tesseract\include\leptonica. If you using binary version of tesseract, you may try to clone the tesseract and leptonica source files to get the header file for compiling OpenCV 3.2.0.