INCLUDEPATH += ./include/tesseract/ \
./include/leptonica/ \
./include
LIBS+= ./lib/libtesseract302.dll \
./lib/libtesseract302.lib
Add the below code to the project.h file:
#include <tesseract/baseapi.h>
Add the below code to the project.cpp file:
const char* filename = "./number.jpg";const char* lang = "eng";tesseract::TessBaseAPI *tess = new tesseract::TessBaseAPI();
////////////////////////////////////////////////////////////////////////////////////////////////
But when I compile the project , the error coming like:undefined reference to `tesseract::TessBaseAPI::TessBaseAPI()
How can I solve the problem? Anyone can tell me how to connect the library of the tesseract_ocr in the Qt5.5 ? Thank you very much.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/6793cbaf-3cd4-4cd6-a791-00e14524855d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RESOURCES = resources/application.qrc \
resources/QBE-GNOME.qrc \
resources/QBE-Faenza.qrc \
resources/QBE-Oxygen.qrc \
resources/QBE-Tango.qrc
LIBS += -llept -ltesseract
win32: {
DESTDIR = ./win32
CONFIG += release embed_manifest_exe
TMAKE_CXXFLAGS += -DQT_NODLL
TMAKE_CXXFLAGS += -fno-exceptions -fno-rtti -static
#QTPLUGIN += qsvg # image formats
DEFINES += WINDOWS
#QMAKE_LFLAGS.gcc += -static-libgcc # -static
RC_FILE = resources/win.rc
INCLUDEPATH += $$PWD/win32-external/include/
LIBS += -lws2_32 -L$$PWD/win32-external/lib
}
unix: {
greaterThan(QT_MAJOR_VERSION, 5) {
message(Qt $$[QT_VERSION] was detected.)
QT += widgets
INCLUDEPATH += -L/opt/include/
LIBS += -L/opt/lib
}
}
have a look at qt-box-editor[1] (even I did not test it with for a long time, but there should be support for QT5)
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/8a07170a-c59a-4677-989c-24ed60f509df%40googlegroups.com.