Skip to content

Commit

Permalink
release version 1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Oct 14, 2024
1 parent 06d1b03 commit 5c46409
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 11 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
49 changes: 42 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand All @@ -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.

Expand Down Expand Up @@ -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

`<your_QT5_path>` could be e.g. `f:/Qt/5.15.2/msvc2019_64`
`<your_tesseract_installation>` could be e.g. `f:/win64`

```sh
set QTDIR=<your_QT5_path>
set PATH=%QTDIR%/bin;%PATH%
cmake -G "Visual Studio 16 2019" -A x64 -S . -B build -DCMAKE_PREFIX_PATH="<your_QT5_path>;<your_tesseract_installation>"
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
```
8 changes: 4 additions & 4 deletions qt-box-editor.pro
Original file line number Diff line number Diff line change
@@ -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 = .
Expand Down Expand Up @@ -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
Expand All @@ -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
}
}

Expand Down

0 comments on commit 5c46409

Please sign in to comment.