How to create OpenCV binary files from source with tesseract-4.0.0 ( Windows )
i tried to explain the steps
Step 1.download https://codeload.github.com/DanBloomb...
extract it in a dir like "C:/leptonica-1.77.0"
run cmake
where is the source code : C:/leptonica-1.77.0
where to build binaries : C:/leptonica-1.77.0/build
click Configure button
select compiler
see "Configuring done"
click Generate button and see "Generating done"
screenshot1
Open Visual Studio 2015 >> file >> open "C:\leptonica-1.77.0\build\build\INSTALL.vcxproj"
select release, build INSTALL
see "Build: 3 succeeded" and be sure C:\leptonica-1.77.0\build\src\Release\leptonica-1.77.0.lib
and C:\leptonica-1.77.0\build\bin\Release\leptonica-1.77.0.dll
have been created.
be sure the directory "C:\Program Files\leptonica" is created and files copied into it.
Step 2.download https://codeload.github.com/tesseract...
extract it in a dir like "C:\tesseract-4.0.0"
run cmake
where is the source code : C:/tesseract-4.0.0
where to build binaries : C:/tesseract-4.0.0/build
click Configure button
select compiler
see "Configuring done"
click Generate button and see "Generating done"
screenshot2
Open Visual Studio 2015 >> file >> open "C:/tesseract-4.0.0\build\ALL_BUILD.vcxproj"
build INSTALL
Step 3.
in OpenCV cmake set Tesseract_INCLUDE_DIR : C:/Program Files/tesseract/include
set tesseract_LIBRARY C:/Program Files/tesseract/lib/tesseract40.lib
set Lept_LIBRARY C:/Program Files/leptonica/lib/leptonica-1.77.0.lib
when you click Configure button you will see "Tesseract: YES" it means everything is OK
make other settings and generate. Compile ....
did you compiled OpenCV from source? here you can find some basic information.
Yes I compiled it from source, but it's not opencv 3.0.0 it's opencv3.2
OK. i am also trying to compile OpenCV with tesseract. i saw your question on SO. it helped me to build tesseract.
we need to know right way to define Lept_LIBRARY tesseract_INCLUDE_DIR tesseract_LIBRARY with cmake on OpenCV compilation
i am also stuck on this point.
maybe http://answers.opencv.org/question/12... will help
I'm also looking at that point.. maybe something missed when building opencv with cmake.
did you get "Tesseract: YES" on cmake while compiling OpenCV
thanks @berak this post http://answers.opencv.org/question/16... seems helpful. i am still trying to find the correct way :)
@sturkmen I don't remember if Tesseract = YES or not.. I have to repeat configuration I think.