June 2019
Intermediate to advanced
348 pages
8h 28m
English
Our Tesseract library is ready, so let's use it to recognize characters in our Literacy application.
The first thing we should do is update the project file to incorporate the information relating to the Tesseract library:
# use your own path in the following configunix: { INCLUDEPATH += /home/kdr2/programs/tesseract/include LIBS += -L/home/kdr2/programs/tesseract/lib -ltesseract}win32 { INCLUDEPATH += c:/path/to/tesseract/include LIBS += -lc:/path/to/opencv/lib/tesseract}DEFINES += TESSDATA_PREFIX=\\\"/home/kdr2/programs/tesseract/share/tessdata/\\\"
In the preceding changeset, we add the include path and the library path of the Tesseract library for different platforms, and then define a macro, TESSDATA_PREFIX ...
Read now
Unlock full access