Download the Teserract setup by clicking here
-
Extract anywhere on your pc.
-
There should be 2 directories tessdata and tesseract.
-
Open a project with the opencv settings already configured to run.
-
Move the tessdata directory to the root of your visual studios project that you plan to use.
-
Open the tesseract directory go to the lib folder and find "liblept168.dll" and "libtesseract302.dll" and move them to the project root directory.
-
In visual studios right click on your project and click properties.
-
c/c++>General>Additional Include Directories> point to the include directory inside tesseract
-
Linker>General>Additional Library Directories > point to the lib directory inside tesseract
-
Linker>Input>Additional Dependencies> add these 2 lines "liblept168.lib" "libtesseract302.lib"
You should now be able to use Tesseract by including following directories
#include <tesseract\baseapi.h>
#include <leptonica\allheaders.h>
Guide by - Rocco Pietrangelo