Commit Graph

6020 Commits

Author SHA1 Message Date
Egor Pugin
bf7c134ba6
Merge pull request #3690 from stweil/SPDX
Clean header comments in public include files
2021-12-25 23:32:58 +03:00
Stefan Weil
3ab060ffbc Clean header comments in public include files
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-25 20:53:06 +01:00
Stefan Weil
5057483ec8 Add SPDX-License-Identifier to public include files
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-25 20:50:49 +01:00
Stefan Weil
7a218f1d6c Fix compiler warning [-Wsign-compare]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-25 17:02:45 +01:00
Stefan Weil
34311179f5 Allow printing of bitfield with variadic templates
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-23 16:38:00 +01:00
Stefan Weil
edf5c91ab9 Fix compiler warnings caused by empty statements
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-23 16:35:47 +01:00
Stefan Weil
a8bdc78985 Replace tprintf comment in API header
tprintf is not part of the public API, so replace it by printf.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-23 15:53:11 +01:00
zdenop
07e319afa8
Cmake install (#3685)
* cmake: install configs
2021-12-22 21:48:52 +03:00
zdenop
f65fae82ac clean up condition to detect MSCV 2021-12-22 18:57:13 +01:00
Zdenko Podobný
771c1e9c9b fix lstm.cpp build with clang 2021-12-20 14:40:45 +01:00
Zdenko Podobný
03ae6d095d cmake: fix bcf7bbb6e2 2021-12-20 13:44:51 +01:00
Zdenko Podobný
bcf7bbb6e2 cmake: do not try to even configure training tools if pkg-config is not present. 2021-12-20 13:37:37 +01:00
Zdenko Podobný
8f02255294 cmake: reformat with cmake-format and check with cmake-lint 2021-12-20 13:18:01 +01:00
leleliu008
12cd761ff6 fix for that motioned in https://github.com/tesseract-ocr/tesseract/issues/3680
Reference:
https://github.com/Kitware/CMake/blob/master/Modules/Platform/Android-Determine.cmake
https://android.googlesource.com/platform/ndk/+/master/build/cmake/android.toolchain.cmake
https://developer.android.com/ndk/guides/cpu-features#the_google_cpu_features_library
https://github.com/google/cpu_features#android-ndks-drop-in-replacement
2021-12-19 00:02:28 +08:00
zdenop
b565cfee9b cmake: do not try to configure training tools without PkgConfig 2021-12-18 09:29:20 +01:00
zdenop
2ee90ffe08 cmake: remove unused code 2021-12-18 09:20:37 +01:00
Amit D
5fd8bfb5ec
CMake: Also check x86_64 and i686 2021-12-17 11:52:47 +02:00
zdenop
82f510fe1e cmake: fix fb74c7eac1 2021-12-16 17:59:33 +01:00
Egor Pugin
5652210c55
Merge pull request #3681 from stweil/curl
Support up to 8 redirections when running OCR on a URL
2021-12-16 18:58:45 +03:00
Stefan Weil
f728df0cfa Support up to 8 redirections when running OCR on a URL
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-16 14:57:18 +01:00
Amit D
1e1a8f6949
Update README.md 2021-12-08 07:25:13 +02:00
Amit D
ec242e9904
Update unittest-disablelegacy.yml 2021-12-05 21:02:48 +02:00
Shreeshrii
cc1cc7079a
Update vcpkg-4.1.1.yml
Remove failing macos from matrix
2021-12-05 15:22:02 +05:30
Amit D
d37dd73439
Fix broken msys2 build with gcc 11
Fix #3672.
2021-12-05 08:57:49 +02:00
Amit D
9508530aa3
Update unittest-disablelegacy.yml 2021-12-03 15:11:10 +02:00
Egor Pugin
c540102620
Merge pull request #3669 from pkubaj/patch-1
Correctly detect amd64 and i386 on FreeBSD
2021-12-02 08:01:31 +03:00
pkubaj
fb74c7eac1
Correctly detect amd64 and i386 on FreeBSD
FreeBSD uses amd64 and i386 names.
2021-12-02 03:46:41 +00:00
Amit D
4abb0e08bc
README: Latest stable version is 5.0.0 2021-12-01 22:36:29 +02: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
Egor Pugin
b5d33a104b
Merge pull request #3664 from stweil/classify
Fix some compiler warnings and avoid float / double conversions in class Classify
2021-11-28 23:04:01 +03:00
Egor Pugin
bb155a1bb4
Merge pull request #3663 from stweil/clang7
Allow compilation with clang-7
2021-11-28 23:02:41 +03:00
Stefan Weil
eb089c1346 autobuild: Fix autogen.sh (reduce build time)
After running autogen.sh and configure, the following make had to
run autoreconf because of dependencies which needed an update.

This is fixed by running aclocal twice.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-28 19:22:58 +01:00
Stefan Weil
a1f40cadc1 Avoid some unnecessary conversions from float to double
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-28 18:55:27 +01:00
Stefan Weil
5e8d877262 Modernize code in class Classify
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-28 18:44:20 +01:00
Stefan Weil
ffe2038ea6 Allow compilation with clang-7
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-28 10:45:46 +01:00
Stefan Weil
839f528b9a Remove unused GenericVector::contains_index, UnicityTable::contains_id
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-28 09:54:59 +01:00
Stefan Weil
8b21e4f0b8 Remove member function GenericVector<T>::contains
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-27 09:40:36 +01:00
Stefan Weil
739057c586 Remove member function UnicityTable<T>::contains
It was only used once, and the code using it can be simplified.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-27 09:40:17 +01:00
Egor Pugin
3313bb794b
Merge pull request #3657 from stweil/bcer
Limit BCER to interval [0,1]
2021-11-25 13:43:47 +03:00
Stefan Weil
99aea21336 Limit BCER to interval [0,1]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-25 08:04:26 +01:00
Egor Pugin
515e9906d4
Update sw.yml 2021-11-24 18:41:06 +03:00
Egor Pugin
6f399c0df1
[ci] Add vs2022 to sw workflow. 2021-11-24 14:17:08 +03: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
Amit D
2087c45f20
Update unittest-disablelegacy.yml 2021-11-22 21:28:29 +02:00
Stefan Weil
2c4665466e Format code with clang-format
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-22 19:47:39 +01:00
Bernhard Liebl
555aa55f05 Add RowAttributes getter to PageIterator
[sw]: Cherry-picked commit from 4.1 branch

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-22 19:47:39 +01:00
Stefan Weil
b649222de3 Fix resultiterator_test with --disable-legacy
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-20 14:58:36 +01:00
Stefan Weil
5f27310d22 Fix some compiler warnings with --disable-legacy
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-20 14:57:08 +01:00
Amit D
47abbaa48f
Training: Fix compiler warnings (#3650)
warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘tesseract::Validator::CharClass’ [-Wformat=]
2021-11-19 21:01:04 +02:00
Amit D
34b4391227
Update unittest-disablelegacy.yml 2021-11-19 11:05:20 +02:00