diff --git a/CHANGELOG b/CHANGELOG index 72645c2..b1c5c14 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,16 @@ +1.13 +- fixed compatibility with QT5 +- build build against the tesseract 5.4.x and leptonica 1.84 +- add cmake support + +1.12 +- fixed compatibility with Tesseract API 3.02 and 3.03 +- fix generating box file with tesserac 3.04 and 3.05 +- fix grayscale palette in PIXqImage +- fix opening box files created by text2image +- use c++11 for bulding +- several other bug fixes + 1.11 - fixed compatibility with QT5 - added multipage support diff --git a/README.md b/README.md index f3b70e1..775ce96 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Screenshots: [wiki](https://github.com/zdenop/qt-box-editor/wiki) Download current (devel) source: [tar.gz](https://github.com/zdenop/qt-box-editor/tarball/master) or [zip](https://github.com/zdenop/qt-box-editor/zipball/master). -The latest released source is [qt-box-editor-v1.11](https://github.com/zdenop/qt-box-editor/tarball/master/tree/v1.11). +The latest released source is [qt-box-editor-v1.13](https://github.com/zdenop/qt-box-editor/tarball/master/tree/v1.13). Download [win32 binary build](http://sourceforge.net/projects/qtboxeditor/?source=dlp) from [sourceforge.net](http://sourceforge.net/projects/qtboxeditor/) @@ -19,7 +19,8 @@ Licence: [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2. DESCRIPTION ----------- -QT Box Editor is tool for adjusting [tesseract-ocr](http://code.google.com/p/tesseract-ocr/) box files. Aim of this project is to provide easy and efficient way for editing regardless file size. +QT Box Editor is tool for adjusting [tesseract-ocr](https://github.com/tesseract-ocr/tesseract) v3 (a.k.a Legacy engine) box files. Aim of this project is to provide easy and efficient way for editing regardless file size. +**It is useless for training tesseract v4 and above (LSTM engine).** Release information can be found in CHANGELOG file. Code and artwork contribution is welcomed. @@ -67,9 +68,43 @@ Other icons/artwork were created for Qt Box Editor and they are released under A Distribution ------------ -For Windows users there is binary a version in [sourceforge.net](http://sourceforge.net/projects/qtboxeditor/?source=dlp) section. From version 1.09 distribution is split to 2 part: -* qt-box-editor executable (e.g. qt-box-editor-1.11.exe) - share build -* qt-box-editor dependecies (e.g. qt-box-editor-1.11-dependecies.zip) - needed 3rd party libraries to run qt-box editor. -There is a hope that qt-box-editor dependecies can be used for next few qt-box-editor releases. +See [release page](https://github.com/zdenop/qt-box-editor/releases) -On other platforms you need to build qt-box-editor from source. You will need QT4 (v1.11 is compatible with QT5), leptonica and tesseract. + + +Instalation +----------- + +Requirements: QT5, tesseract & leptonica and (optionally) cmake. + +For building you can use `qmake-qt5` or `cmake` + +For cmake build you will need to compile&install tesseract by cmake otherwise cmake relevant files (e.g. ` tesseractConfig.cmake`) will not be created and installed. + +## cmake windows build + +`` could be e.g. `f:/Qt/5.15.2/msvc2019_64` +`` could be e.g. `f:/win64` + +```sh +set QTDIR= +set PATH=%QTDIR%/bin;%PATH% +cmake -G "Visual Studio 16 2019" -A x64 -S . -B build -DCMAKE_PREFIX_PATH=";" +cmake --build build --config Release --verbose +``` + +The Output will be at build\Release\qt-box-editor-1.13.0.exe + +## cmake linux build + +```sh +cmake -B build +make +``` + +## qmake linux build + +```sh +qmake-qt5 +make +``` \ No newline at end of file diff --git a/qt-box-editor.pro b/qt-box-editor.pro index 541618c..7e41793 100644 --- a/qt-box-editor.pro +++ b/qt-box-editor.pro @@ -1,5 +1,5 @@ TEMPLATE = app -QTB_VERSION = "1.13.0-alpha" +QTB_VERSION = "1.13.0" TARGET = qt-box-editor-$${QTB_VERSION} DEFINES += APP_VERSION=\\\"$${QTB_VERSION}\\\" DESTDIR = . @@ -71,7 +71,7 @@ RESOURCES = resources/application.qrc \ resources/QBE-Tango.qrc win32 { - # DESTDIR = ./win32 + DESTDIR = ./win32 CONFIG += embed_manifest_exe TMAKE_CXXFLAGS += -DQT_NODLL TMAKE_CXXFLAGS += -fno-exceptions -fno-rtti -static @@ -84,9 +84,9 @@ win32 { CONFIG(debug, debug|release) { TARGET = $$join(TARGET,,,d) - LIBS += -ltesseract53d -lleptonica-1.83.1d + LIBS += -lltesseract54d -lleptonica-1.84.1d } else { - LIBS += -ltesseract53 -lleptonica-1.83.1 + LIBS += -ltesseract54 -lleptonica-1.84.1 } }