Commit Graph

6001 Commits

Author SHA1 Message Date
Stefan Weil
6f499f7fb5 Use std::vector<PROTO_STRUCT> for CLASS_STRUCT::Prototypes
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 20:31:35 +02:00
Stefan Weil
441f74c1e6 Replace malloc / free for STATISTICS
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 20:31:35 +02:00
Stefan Weil
57d3a1eb99 Replace malloc / free for CLUSTER::Mean and PROTOTYPE::Mean
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 20:31:32 +02:00
Stefan Weil
667eee2344 Replace malloc / free for CLIST
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 12:12:18 +02:00
Stefan Weil
0077bc46cf Replace malloc / free for ELIST2
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 12:12:18 +02:00
Stefan Weil
2c273c1b3b Replace malloc / free for ELIST
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 12:12:18 +02:00
Stefan Weil
582260a9bf Replace malloc / free for C_OUTLINE::steps
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 12:12:18 +02:00
Stefan Weil
b15b5d1de7 Replace malloc / free by new / delete for FEATURE_STRUCT, FEATURE_SET_STRUCT
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-28 12:12:18 +02:00
Stefan Weil
aa8dda89a3 Replace malloc / free by new / delete for CHAR_DESC_STRUCT
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 18:43:14 +01:00
Stefan Weil
0f90ccb9cd Replace malloc / free by new / delete for CHISTRUCT
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 16:45:14 +01:00
Stefan Weil
0a46866bcd Replace malloc / free by new / delete for PERM_CONFIG_STRUCT
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 16:19:40 +01:00
Stefan Weil
92359a4a11 Replace malloc / free by new / delete for TEMP_CONFIG_STRUCT
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 15:59:28 +01:00
Stefan Weil
fdf4539769 Replace malloc / free by new / delete for ADAPT_CLASS_STRUCT
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 13:49:57 +01:00
Stefan Weil
0a0a3e1946 Replace malloc / free by new / delete
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 13:00:18 +01:00
Stefan Weil
884a28b366 Fix some compiler warnings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 13:00:18 +01:00
Stefan Weil
77514d693f Modernize BitVector
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-27 13:00:18 +01:00
Egor Pugin
a843f3b258
Merge pull request #3366 from stweil/master
Simplify checks for emptiness
2021-03-27 12:27:25 +03:00
Stefan Weil
0f72e0fdb3 Simplify checks for emptiness
Replace the patterns (x.size() == 0) and (x.length() == 0) by x.empty().

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-26 23:22:50 +01:00
Stefan Weil
135a18f564 Add more list tests
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-26 22:39:06 +01:00
Egor Pugin
067c971774 Misc. 2021-03-24 14:36:45 +03:00
Egor Pugin
7c975a0eee Remove default locale setting in debug config. Any locale errors must be fixed separately (if any).
Fixes #3290.
2021-03-24 14:36:40 +03:00
Egor Pugin
60d2516d30
Merge pull request #3365 from Shreeshrii/fix
Actions CI: Change workflow name
2021-03-24 11:06:09 +03:00
Stefan Weil
595346d548 Replace some snprintf by std::to_string and modernize more code
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-24 08:01:59 +01:00
Shree
6dcb489d9e Actions CI: Change workflow name 2021-03-24 04:38:14 +00:00
Egor Pugin
6ee69db22c
Merge pull request #3364 from stweil/master
Suppress output of page number for TIFF files with a single image
2021-03-23 21:46:14 +03:00
Stefan Weil
2048f328e0 Suppress output of page number for TIFF files with a single image
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-23 18:25:15 +01:00
Egor Pugin
9d8fd2e8ed
Merge pull request #3363 from Shreeshrii/split
Actions CI: Split autotools and unittest workflows into 2
2021-03-23 20:20:27 +03:00
Shree
db85905e5a Actions CI: Split autotools and unitest workflows into 2 2021-03-23 16:36:38 +00:00
Stefan Weil
264dfb3685 Don't convert for loop after '#pragma omp parallel' with clang-tidy
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-23 15:48:59 +01:00
Stefan Weil
1205f036ea Remove TessBaseAPI::SetThresholder (API change)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-23 08:59:04 +01:00
Stefan Weil
7d70ed4b41 Modernize code for OTSU and reduce public API further
Remove thresholder.h from the public API.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-23 08:59:04 +01:00
Egor Pugin
dcde0b474e
Merge pull request #3358 from stweil/master
Avoid lots of messages for training with single line images
2021-03-22 23:46:41 +03:00
Stefan Weil
ef645ce334 Avoid lots of messages for training with single line images
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 16:06:30 +01:00
Egor Pugin
0a74849477
Merge pull request #3356 from Shreeshrii/ciupdate
Actions CI Update
2021-03-22 16:38:01 +03:00
Shree
0970175555 Actions CI: Add MINGW64 builds using msys2 2021-03-22 13:00:32 +00:00
Shree
4446b570f6 Actions CI: rename 4.11 to 4.1.1 2021-03-22 12:59:04 +00:00
Shree
6f994f785d Actions CI: Deleted unittest run which was running out of space 2021-03-22 12:58:07 +00:00
Egor Pugin
7677b80408
Merge pull request #3355 from eighttails/output_training_command_line
Print command line options if run_command() failed.
2021-03-22 15:13:31 +03:00
Tadahito Yao
3b436a72c5 Print command line options if run_command() failed. 2021-03-22 20:46:44 +09:00
Stefan Weil
f41583bcd5 Update submodule abseil to tagged release 20200923.3
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 10:38:34 +01:00
Stefan Weil
67dcbdda2f Fix some compiler warnings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 10:36:38 +01:00
Egor Pugin
d72c2b14a5
Merge pull request #3354 from stweil/master
Add braces to single line statements and modernize unittest code using clang-tidy
2021-03-22 11:23:27 +03:00
Stefan Weil
4530763329 Fix some compiler warnings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:15:09 +01:00
Stefan Weil
fbaac9dc9d Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:03:51 +01:00
Stefan Weil
49d4afca63 Modernize code (clang-tidy -checks='-*,modernize-use-equals-*')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:02:57 +01:00
Stefan Weil
2a83c4a898 Modernize code (clang-tidy -checks='-*,modernize-use-emplace')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:02:57 +01:00
Stefan Weil
a54dc6390d Modernize code (clang-tidy -checks='-*,modernize-use-auto')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:02:57 +01:00
Stefan Weil
77ed2886a7 Modernize code (clang-tidy -checks='-*,modernize-loop-convert')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:02:51 +01:00
Stefan Weil
cb80eb6963 Modernize code (clang-tidy -checks='-*,modernize-use-override')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:02:13 +01:00
Stefan Weil
7bada4e629 Add braces to single line statements (clang-tidy -checks='-*,google-readability-braces-around-statements')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-22 09:02:13 +01:00