Commit Graph

6134 Commits

Author SHA1 Message Date
Egor Pugin
801b31340b
Update codeql-analysis.yml 2022-02-07 03:48:09 +03:00
Egor Pugin
6115200f40
Update Makefile.am 2022-02-07 03:24:51 +03:00
Egor Pugin
7c7dd1d889 Remove unused code. 2022-02-07 02:05:38 +03:00
Egor Pugin
58c52dbce6 Remove unused code. 2022-02-07 01:59:33 +03:00
Egor Pugin
91d836a556 Simplify. Move related function from separate file. 2022-02-07 01:53:10 +03:00
Stefan Weil
4ce8fafd82
Merge pull request #3745 from egorpugin/main
Remove unused functions in genericvector.h.
2022-02-06 23:13:03 +01:00
Egor Pugin
dbc14e68d4 Fix warnings. 2022-02-07 01:00:11 +03:00
Egor Pugin
37c62f3ae0 Remove unused fwd. 2022-02-07 01:00:05 +03:00
Egor Pugin
2882766882 Remove unused ctors in macros. 2022-02-07 00:59:41 +03:00
Egor Pugin
b4231c0cee Fix list type. 2022-02-07 00:59:27 +03:00
Egor Pugin
8eef8bc1ac Remove in-class TESS_API. 2022-02-07 00:59:15 +03:00
Egor Pugin
dfffaa28c3 Remove unused functions in genericvector.h. 2022-02-07 00:24:01 +03:00
Egor Pugin
f35348c63c Ignore more build files. 2022-02-07 00:22:51 +03:00
Egor Pugin
0e7e4cf779 Fix build. 2022-02-07 00:21:32 +03:00
Egor Pugin
eeb4121888 Fix warnings. 2022-02-07 00:21:26 +03:00
Egor Pugin
7f6606ccdc Remove unneeded dtor. 2022-02-07 00:20:07 +03:00
Egor Pugin
f526bf30bb Fix warnings. 2022-02-07 00:19:52 +03:00
Egor Pugin
968d653f89 Shorten macros. 2022-02-07 00:17:29 +03:00
Stefan Weil
44ddde1692 Remove a local function from class TableRecognizer
This allows the compiler to remove the unused function IsWeakTableRow.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 21:14:08 +01:00
Stefan Weil
101ed0036b Remove some local functions from class ImageFind
This allows optimizations like inline code by the compiler.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 20:31:52 +01:00
Stefan Weil
eeda2297ca Remove unused functions ImageFind::ComposeRGB and ImageFind::ClipToByte
Fixes: a1c22fb0d0 ("Fixed issue #557")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 20:13:31 +01:00
Stefan Weil
f6250e6dfe Remove unused function ImageFind::ComputeRectangleColors
Fixes: a1c22fb0d0 ("Fixed issue #557")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 20:03:31 +01:00
Stefan Weil
14399ceb78 Remove unused resolution parameters
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 16:08:59 +01:00
Stefan Weil
7ea97552c6 Remove some local functions from class LineFinder
This allows optimizations like inlining by the compiler.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 15:58:49 +01:00
Stefan Weil
554d14d275 Fix comment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-05 15:37:12 +01:00
Egor Pugin
8b5571f8bf
Merge pull request #3742 from stweil/robustness
Catch nullptr in PageIterator::Orientation to improve robustness
2022-02-03 14:57:42 +03:00
Stefan Weil
76faf16006 Fix old TODO (STATS::rangemax_)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-03 09:15:31 +01:00
Stefan Weil
443933a75a Catch nullptr in PageIterator::Orientation to improve robustness
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-03 08:31:31 +01:00
Stefan Weil
31a968432d Additional fix for CI action autotools-macos for MacPorts
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-17 09:08:20 +01:00
Stefan Weil
f6d2658ce5 Fix CI action autotools-macos for MacPorts
Remove the existing installation of Homebrew for tests with MacPorts.
Allow also to run the CI on demand manually.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-17 08:35:54 +01:00
Stefan Weil
fe420fa718
Require cmake 3.10 or newer (#3724)
CMakeLists.txt uses TREE (supported since cmake 3.8) and
check_ipo_supported (supported since cmake 3.9).

Require 3.10 which is provided by Ubuntu bionic and newer distributions.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-16 22:30:08 +02:00
Stefan Weil
24e68b9140 Add new parameter curl_timeout for curl_easy_setop
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-16 14:58:06 +01:00
Stefan Weil
ad55cec472 Add missing include file for std::max, std::min
This fixes a build issue with VS 2019 Version 16.11.9
and platform toolset v141.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-13 22:15:50 +01:00
Stefan Weil
d9f232aef6 ci: Setting PKG_CONFIG_PATH is no longer needed for autoconf builds on MacOS
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-12 19:21:53 +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
Egor Pugin
853aa66962
Merge pull request #3716 from ffontaine/main
Check if platform supports feenableexcept
2022-01-11 22:05:08 +03: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
e28154ab1e Update documentation for release 5.0.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-07 10:39:59 +01:00
Egor Pugin
ded6108756
Merge pull request #3712 from stweil/cmake
cmake: TIFF is only used for WIN32
2022-01-07 00:02:55 +03:00
Stefan Weil
5113ed1b71 cmake: TIFF is only used for WIN32
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-06 20:52:49 +01:00
Piotr Kubaj
790f3bd104 Fix build on non-x86 non-ARM with clang
Clang doesn't exit with error on powerpc64* after adding -mfpu=neon,
but merely ignores the argument and prints a warning, which incorrectly
makes it defined as ARM with NEON.
2022-01-06 17:16:09 +01:00
Egor Pugin
890cf3ec8f
Merge pull request #3705 from stweil/cmake
Fix build with cmake 3.10.2 (Ubuntu bionic)
2022-01-03 19:03:33 +03:00
Stefan Weil
04a66b91e6 Don't use <XXX>_LINK_LIBRARIES for cmake before version 3.12
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 16:34:10 +01:00
Stefan Weil
28f854186f cmake: reformat with cmake-format
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 16:34:10 +01:00
Stefan Weil
b8b2ab225f Simplify cmake check for Pango related modules
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 16:34:10 +01:00
Stefan Weil
f2af305600 Update required packages for CI
A full build requires libarchive and libcurl.

The brew formula for pango depends on cairo and icu4c,
so it is not necessary to install them explicitly.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 14:44:21 +01:00
Egor Pugin
a02c80c3ed
Merge pull request #3704 from stweil/cmake-fixes
Two fixes for cmake builds
2022-01-02 17:00:52 +03:00
Stefan Weil
68a2aea135 cmake: Add project include paths before others
This fixes cmake builds with old tesseract header files in /usr/local.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-02 14:58:08 +01:00
Stefan Weil
c3c734e5ab cmake: Fix check for CURL_LIBRARIES
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-02 14:58:08 +01:00