Commit Graph

301 Commits

Author SHA1 Message Date
Stefan Weil
64eab6c457 Create new release 5.5.0
Some checks are pending
CodeQL / Analyze (cpp) (push) Waiting to run
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-11-10 20:23:34 +01:00
sunyuechi
16fc9d90a4 Add RISC-V V support (#4346)
Convert riscv-v-spec-1.0.pdf into 111 PNG images,
then perform OCR on each one in sequence,
and measure the testing time on banana_f3:

old:        31m16.267s
new:        16m51.155s

Co-authored-by: sunyuechi <sunyuechi@iscas.ac.cn>
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2024-11-08 08:09:01 +01:00
Stefan Weil
d7c0a05ffa Remove Tensorflow support
Tensorflow was never used because of missing models.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-11-07 13:40:43 +01:00
Stefan Weil
c886e3b639 Update NSIS configuration
- Move NSIS installer file to new location
- Support cross builds with NSIS
- Clean nsis configuration
- Fix typos in nsis configuration
- Add jar files needed for ScrollView.jar
- Move ScrollView.jar to a new section
- Add missing configurations to tessdata
- Registry settings are now disabled (problems with long PATH)
- Add menu sections for all languages
- Simplify language downloads
- Tune and improve nsis configuration
- Add sizes for language data
- Add missing translations to nsis configuration
- Don't show details in installer by default
- Initial code for 64 bit Tesseract installer
- Fix uninstall for TESSDATA_PREFIX registry key
- Remove cube code
- nsis: Add all training executables
- nsis: Disable registry settings

Trying to add to PATH fails if the old PATH is very long and
will result in an empty PATH.

Remove these settings as they were already disabled by default,
and both are not needed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-11-02 07:00:33 +01:00
Stefan Weil
b5f279ec75 Create new release 5.4.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 20:18:21 +02:00
Stefan Weil
1be261dc22 Create new release 5.4.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-06 15:29:45 +02:00
Stefan Weil
9a30816783 Create new release 5.3.5-rc1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-19 11:57:23 +02:00
Stefan Weil
0418ec28f3 Create new release 5.3.5-rc1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-12 15:32:22 +02:00
Stefan Weil
d5e000bc58
Remove unsupported OpenCL code and related API functions (#4220)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-04-11 19:15:39 +03:00
Stefan Weil
8ee020e14c Create new release 5.3.4
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-01-18 08:48:04 +01:00
Stefan Weil
e082522c24 Create new release 5.3.3
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-10-05 18:27:23 +02:00
pkubaj
9bf4b31012
Fix build without git clone in cloned directory
FreeBSD uses git to manage Ports Tree. Tesseract, when building from the Ports Tree, is built from a tarball that doesn't have .git and then git describe is ran on top of the Ports Tree.
2023-07-11 16:02:23 +00:00
Stefan Weil
489f101c7e Create new release 5.3.2
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-11 13:54:45 +02:00
Stefan Weil
71af454299 Create new release 5.3.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-04-01 21:50:30 +02:00
Stefan Weil
1e04be842d Replace 'can not' by 'cannot'
Both forms are used in American English, but 'cannot' is more common
(also in Tesseract code), so use it always.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-02-08 17:34:22 +01:00
Stefan Weil
080da83cc5 Create new release 5.3.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-12-22 14:57:57 +01:00
Stefan Weil
86a7bc6c06 Create new release 5.3.0-rc1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-12-13 17:37:35 +01:00
Stefan Weil
6e4de524d0 Replace MacOS -> macOS
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-12-13 17:37:35 +01:00
Stefan Weil
adbefa8316 Fix AMD64 detection with autobuild on FreeBSD (#3964)
Tesseract for FreeBSD was built without support for SSE4.1, AVX,
AVX2 or FMA because it uses a different value for `host_cpu`.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-14 18:30:42 +01:00
Fabrice Fontaine
cffb8a36a9 configure.ac: fix build on aarch64_be
Fix the following build failure on aarch64_be:

/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/aarch64_be-none-linux-gnu/10.3.1/../../../../aarch64_be-none-linux-gnu/bin/ld: ./.libs/libtesseract.so: undefined reference to `tesseract::IntSimdMatrix::intSimdMatrixNEON'

Fixes:
 - http://autobuild.buildroot.org/results/b9246a37fcf6be4fabfc491daddadfb09e0a320a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-08-21 10:21:43 +02:00
Stefan Weil
5ad5325a0a Create new release 5.2.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-07-06 22:15:49 +02:00
Robert Clausecker
2e7ae6eeb6
Fix NEON detection on FreeBSD (#3782)
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2022-05-29 19:06:54 +02:00
Stefan Weil
b0d82879e5 Add initial support for Intel AVX512F
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-04-14 23:47:04 +02:00
Stefan Weil
d7373727d6 autoconf: Use more robust code to get git tag
The old code failed with an error message when running in a
git working directory without any tag (for example after
git clone --depth 1).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-03 13:30:54 +01:00
Stefan Weil
c2a3efe282 Create new release 5.1.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-01 17:25:45 +01:00
Stefan Weil
a773bf28db Fix linker flags for MSYS2 clang64 builds
MSYS2 clang64 uses the lld linker which does not support --as-needed.
The normal GNU ld uses that linker option with ELF targets but ignores
it for PE targets (.exe, .dll), so it can be removed.

Remove also the -Wl, which is only needed when linker options are
passed to the compiler but not when they are directly passed to the
linker.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-27 11:11:40 +01:00
Stefan Weil
22ec41fb66 autoconf: Set PKG_CONFIG_PATH required for Homebrew (macOS)
If no PKG_CONFIG_PATH was provided by the user, it is now set
automatically on hosts which have the `brew` command.

MacOS with Homebrew needs PKG_CONFIG_PATH to find icu4c and libarchive.

Signed-off-by: Stefan Weil <stweil@notebook11.fritz.box>
2022-01-12 18:59:33 +01:00
Gilles Talis
be15b46c60 Check if platform supports feenableexcept
feenableexcept is not supported by uclibc

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
[Retrieved (and updated to add cmake support and simplify configure.ac)
from
https://git.buildroot.net/buildroot/tree/package/tesseract-ocr/0001-Check-if-platform-supports-feenableexcept.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-01-11 15:23:56 +01:00
Stefan Weil
5d5cd77e3d Create new release 5.0.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-07 13:43:52 +01:00
Stefan Weil
924b746e6f Create new release 5.0.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-30 18:48:16 +01:00
Stefan Weil
ee29fca9ce Create new release 5.0.0-rc3
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-22 22:01:18 +01:00
Stefan Weil
66dc90bc5f Create new release 5.0.0-rc2
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-14 20:04:23 +01:00
Stefan Weil
5884036ecd Don't use compiler flags -march=native -mtune=native in autoconf builds
Using those flags is not acceptable for Linux distributions
because the resulting code then depends on the build
infrastructure, so the build result is not deterministic.

It is still possible to use those compiler flags by specifying
CXXFLAGS.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-11 12:29:51 +01:00
Amit D
b77009bd59
configure.ac: Update minimum required autoconf version to 2.69
This version was released in April 2012.

It is supported by old Linux distros like RHEL/CentOS 7, SLES 12 and Ubuntu 14.04.
2021-11-02 15:49:46 +02:00
Stefan Weil
104ef8f30e Move src/api/tesseractmain.cpp to src/tesseract.cpp
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-31 21:43:30 +01:00
Stefan Weil
8b6390846e Create new release 5.0.0-rc1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-29 22:32:11 +02:00
Stefan Weil
676b86be4d Fix automake warning because of redefined DEFAULT_INCLUDES
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-28 22:14:06 +02:00
Stefan Weil
282685d531 Enable fast float32 LSTM by default
It is still possible to build Tesseract with double LSTM:

    # autoconf
    ./configure --disable-float32

    # cmake
    cmake .. -DFAST_FLOAT=ON

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-27 18:37:27 +02:00
Stefan Weil
571a8fe1d7 autotools: Use AM_LDFLAGS for framework Accelerate
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-06 07:40:54 +02:00
Stefan Weil
f9d17598a8 Make automake builds less noisy by default
The old commit only silenced parts of the build,
while the new one silences the whole build.

Fixes: 47af1282f4
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-09-24 15:21:26 +02:00
Stefan Weil
75f167ac8c Create new pre-release 5.0.0-beta-20210916
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-09-16 06:35:29 +02:00
Stefan Weil
547164edae Create new pre-release 5.0.0-beta-20210815
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-08-15 17:07:11 +02:00
Stefan Weil
0d0f203509 Add new configure option --enable-float32 for faster LSTM with float
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-29 06:49:08 +02:00
Stefan Weil
3ab8dcbf72 Use Apple Accelerate framework for training and best models
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-20 19:27:54 +02:00
Stefan Weil
f0fb6809e3 Use SIMD instructions for DotProductNative
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-14 19:13:01 +02:00
Amit Dovev
8615f65cc4 Raise Minimum required Pango version to 1.38.0 2021-05-21 19:56:37 +03:00
Stefan Weil
bf3421ff12 Fix autoconf build for latest MacOS (Intel and M1)
On latest MacOS 11.3 the system header file "ostream" includes a file
named "version".

The macro DEFAULT_INCLUDES adds the source root to the list of include
directories by default. As MacOS uses a case insensitive file system,
the compiler finds and includes the file "VERSION" there which causes
compiler errors and a failing build process.

Setting an empty DEFAULT_INCLUDES fixes that, but requires moving
config_auto.h to another directory in the include search path.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-05-13 17:22:58 +02:00
Stefan Weil
6c7df2acf3 Fix warning from autoconf
autoconf reported this warning:

    configure.ac:263: warning: AC_CHECK_HEADERS("tensorflow/core/framework/graph.pb.h"): you should use literals

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-05-13 12:57:20 +02:00
Uwe Hartwig
930c909db5 [doc][fix] typo libicu-devel 2021-04-30 13:01:32 +02:00
Stefan Weil
b7e8134dea Update URLs for Google groups
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-11 10:43:28 +02:00