Hello! How can i amend the pro file to make the program work?
Googled a lot about QT and Tesseract, could not find a solution yet.
QT += core
QT -= gui
CONFIG += c++11
TARGET = openCV
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
INCLUDEPATH += C:\opencv\release\install\include
LIBS += C:\opencv\release\bin\libopencv_core455.dll
LIBS += C:\opencv\release\bin\libopencv_highgui455.dll
LIBS += C:\opencv\release\bin\libopencv_imgcodecs455.dll
LIBS += C:\opencv\release\bin\libopencv_imgproc455.dll
LIBS += C:\opencv\release\bin\libopencv_calib3d455.dll
LIBS += C:\opencv\release\bin\libopencv_features2d455.dll
LIBS += C:\opencv\release\bin\libopencv_video455.dll
LIBS += C:\opencv\release\bin\libopencv_videoio455.dll
LIBS += -L"(C:\Program Files(x86)\Tesseract-OCR)" -ltesseract
INCLUDEPATH += /usr/include/tesseract
INCLUDEPATH += C:\Program Files(x86)\Tesseract-OCR)
LIBS += C:\Program Files(x86)\Tesseract-OCR)
LIBS +=-LC:\Program Files(x86)\Tesseract-OCR)
-ltesseract.dll
-llept.dll
LIBS += -LC:\Qt\opencv_cv2\OPENCV1\build-qt\lib
-lopencv_calib3d249d
-lopencv_contrib249d
-lopencv_core249d
-lopencv_features2d249d
-lopencv_flann249d
-lopencv_gpu249d
-lopencv_highgui249d
-lopencv_imgproc249d
-lopencv_legacy249d
-lopencv_ml249d
-lopencv_nonfree249d
-lopencv_objdetect249d
-lopencv_ocl249d
-lopencv_photo249d
-lopencv_stitching249d
-lopencv_superres249d
-lopencv_ts249d
-lopencv_video249d
-lopencv_videostab249d
SOURCES += main.cpp
DEFINES += QT_DEPRECATED_WARNINGS
Errors:
still saying D:\PROG\May\Tesseract\main.cpp:1: error: tesseract/baseapi.h: No such file or directory
D:\PROG\May\Tesseract\main.cpp:1:10: fatal error: tesseract/baseapi.h: No such file or directory
1 | #include <tesseract/baseapi.h>
| ^~~~~~~~~~~~~~~~~~~~~
Might be incorrect install, because SW file and SW gui could not be executed.
Strongly need advice!
INCLUDEPATH += /usr/include/tesseractThis does not seem correct on windows.
error: tesseract/baseapi.h: No such file or directory
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/923f5b9b-def7-4171-9ac6-d342a3a99dc9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/71657717-96de-4d45-8e8c-68b9470b24f4n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/eb46e820-7667-4ff3-88bf-d9aecac1de20n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/b238ceb7-a36a-4ba4-8923-bf74f44e2c8an%40googlegroups.com.
Mingw-w64 allows building 32- or 64-bit executables for Windows. It can be used for native compilations on Windows, but also for cross compilations on Linux (which are easier and faster than native compilations). Most large Linux distributions already contain packages with the tools need for a cross build. Before building Tesseract, it is necessary to build some prerequisites.
For Debian and similar distributions (e. g. Ubuntu), the cross tools can be installed like that:
These prerequisites will be needed:
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/33d82b77-5b35-4a86-8307-3d403390b95fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/9e54a194-c038-490f-86bc-2eedf08dec1cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/9e54a194-c038-490f-86bc-2eedf08dec1cn%40googlegroups.com.