Commit Graph

5953 Commits

Author SHA1 Message Date
Stefan Weil
ee91ec2da7 Another try 3 for OSS-Fuzz 2022-03-02 22:45:45 +01:00
Stefan Weil
629944a333 Another new try for OSS-Fuzz 2022-03-02 22:35:37 +01:00
Stefan Weil
b3fb8ce26e Another try for OSS-Fuzz 2022-03-02 22:25:01 +01:00
Stefan Weil
3af0753da3 Try static linking for OSS-Fuzz
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-02 20:01:46 +01:00
Stefan Weil
b78935d3c1 Debug OSS-Fuzz build
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-02 14:52:51 +01:00
Stefan Weil
a77c337a28 Update linker flags for OSS-Fuzz build
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-02 14:38:19 +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
59b4b1eaf8 Remove unneeded include statements
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-28 23:09:23 +01:00
Stefan Weil
32e452fc50 Fix typo in descriptions of thresholding parameters
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-27 22:44:46 +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
Egor Pugin
30ebb31f1f
[cmake] Indent. 2022-02-20 02:16:55 +03:00
Egor Pugin
624e5cd808
[cmake] Indent. 2022-02-20 02:16:15 +03:00
Egor Pugin
1e095ad33f
Merge pull request #3752 from OgreTransporter/fix-issue-3751
Check OpenMP target in CMake (issue #3751)
2022-02-20 02:15:09 +03:00
Amit D
c54164015d
README: ALTO is supported since version 4.1.0 2022-02-14 14:25:55 +02:00
Stefan Weil
424b17f997 Handle image and line regions in output formats ALTO, hOCR and text
Tested-by: Merlijn Wajer <merlijn@archive.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-10 14:23:47 +01:00
Egor Pugin
4b2553c31d
Merge pull request #3753 from stweil/clang-warnings
Partially revert changes of list data types (fix compiler warnings)
2022-02-09 19:58:12 +03:00
Egor Pugin
f866899a00
Update codeql-analysis.yml 2022-02-09 17:11:59 +03:00
Stefan Weil
ebf367e248 Partially revert changes of list data types (fix compiler warnings)
Changing from class to struct causes clang compiler warnings like this one:

In file included from ../../../src/api/baseapi.cpp:63:
../../../include/tesseract/osdetect.h:29:1: warning: class 'BLOB_CHOICE_LIST' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
class BLOB_CHOICE_LIST;
^
../../../src/ccstruct/ratngs.h:228:1: note: previous use is here
ELISTIZEH(BLOB_CHOICE)
^
../../../src/ccutil/elst.h:804:10: note: expanded from macro 'ELISTIZEH'
  struct CLASSNAME##_LIST : X_LIST<ELIST, ELIST_ITERATOR, CLASSNAME> { \
         ^
<scratch space>:458:1: note: expanded from here
BLOB_CHOICE_LIST
^
../../../include/tesseract/osdetect.h:29:1: note: did you mean struct here?
class BLOB_CHOICE_LIST;
^~~~~

As it is not possible to change the API header tesseract/osdetect.h,
some of the changes from class to struct had to be reverted.

Fixes: 968d653f89 ("Shorten macros")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-09 12:53:56 +01:00
Transporter
c2a69a62af Check OpenMP target in CMake (issue #3751) 2022-02-09 10:12:14 +01:00
Egor Pugin
acd6f6c93f
Update codeql-analysis.yml 2022-02-07 03:52:53 +03:00
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