Commit Graph

6134 Commits

Author SHA1 Message Date
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
64bcdce607 Replace std::regex by std::string functions (fixes issue #3830)
On Windows with UCRT and a UTF-8 locale std::regex takes a lot of time
(several minutes!). Replacing it avoids that bottleneck.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-05-29 10:21:51 +02:00
Stefan Weil
f36c0d019b Replace direct access to Leptonica internal data structures by function calls
This fixes builds with latest Leptonica code (for example for OSS-Fuzz).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-05-03 12:15:39 +02:00
Stefan Weil
9aa81cddbf Use unsigned offsets for PDF
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-05-03 08:24:04 +02:00
mcsjosh
ac7adc8ea5
Pdf offset fix (#3808)
* Ensure that TessPDFRenderer::offsets_ elements are at least 64-bit

* Use a signed type for PDF offsets
2022-05-02 22:26:51 +03:00
Egor Pugin
9ff97cd8a3
Delete .travis.yml 2022-04-30 22:35:21 +03:00
zdenop
5e053f3c72 cmake: report build arch 2022-04-15 14:32:07 +02:00
zdenop
a0354010b2 cmake:fix typo 2022-04-15 14:31:40 +02:00
Stefan Weil
898ced5c0a Fix sw build for AVX512
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-04-15 13:55:06 +02:00
zdenop
864ab537bb
Merge pull request #3792 from stweil/avx512f
Add initial support for Intel AVX512F
2022-04-15 12:52:18 +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
b5b5e92694 Add missing apt-get update in CI actions
This fixes some broken CI runs.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-04-13 08:33:12 +02:00
Egor Pugin
7ba435df45
Merge pull request #3789 from sunoru/patch-appendstring
Check input for `AppendString` to avoid `strlen(nullptr)`.
2022-04-11 23:50:31 +03:00
Sunoru
def53f3d4e
Check input for AppendString to avoid strlen(nullptr). 2022-04-11 16:37:35 -04:00
Stefan Weil
facd55ab5c Set /Os for some 32 bit MS compilers (fixes #3769)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-31 22:10:24 +02:00
Stefan Weil
fd48287c02 scrollview: Fix two comments
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-31 15:46:56 +02:00
Shreeshrii
18d61ecdef
Add CI for openmp performance comparison (#3774)
* Add CI for openmp performance comparison

* Update .github/workflows/autotools-openmp.yml

Co-authored-by: Stefan Weil <sw@weilnetz.de>

* Update autotools-openmp.yml

* Update autotools-openmp.yml

Add linefeed

Co-authored-by: Stefan Weil <sw@weilnetz.de>
2022-03-28 08:44:15 +02:00
Shreeshrii
ac69d07f43
Update autotools.yml 2022-03-26 12:00:50 +05:30
Shree Devi Kumar
3b46c964d2 Add benchmark test with disable-openmp 2022-03-26 06:26:38 +00:00
zdenop
68144fa2a7
Merge pull request #3773 from Gitoffthelawn/patch-1
Added link to tessdata repository
2022-03-25 13:57:43 +01:00
Gitoffthelawn
075dae8a5d
Added link to tessdata repository
Thank you for this excellent project.
2022-03-25 04:30:33 -07:00
zdenop
76dbc21233 fix OpenCL with Nvidia drivers 2022-03-19 11:54:09 +01:00
zdenop
c5007c082b cmake: fix OpenCL build 2022-03-19 11:52:57 +01:00
zdenop
3c224f7ea6
Update cmake.yml
remove clang++-13 configuration
2022-03-12 11:22:29 +01:00
CSBVision
e9b3939566
Update ccutil.cpp (#3768)
Fixes #3767.

Co-authored-by: Stefan Weil <sw@weilnetz.de>
2022-03-11 15:31:27 +01:00
zdenop
9f278588eb
Update CMakeLists.txt 2022-03-11 12:58:03 +01:00
zdenop
a5de8c7fa6
Update cmake.yml
test clang++-13 on ubuntu-20.04
2022-03-11 09:44:25 +01:00
Zdenko Podobný
db8a7ad06b cmake: turn off LTO 2022-03-11 07:34:22 +01:00
Zdenko Podobný
63f2d89271 cmake: enable link-time optimization by default 2022-03-10 16:24:06 +01:00
Egor Pugin
0e526791b2
Merge pull request #3765 from zdenop/cmake_unused
cmake: speed up configuration
2022-03-10 14:03:16 +03:00
Zdenko Podobný
bd52461f2a cmake: hide more msvc warnings 2022-03-10 10:11:01 +01:00
Zdenko Podobný
9996de02b3 cmake: skip simd compiler option test for MSVC 2022-03-10 10:09:59 +01:00
Zdenko Podobný
699c1538fb cmake: disable unused checks 2022-03-10 10:02:25 +01: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
f9c5e99e44 Use static linker flags for OSS-Fuzz build
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-03 12:51:46 +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