Shree Devi Kumar
fe4951e4d5
Do not run textlineprojection_test with disable-legacy, uses OSD
2021-01-15 13:04:38 +00:00
Shree Devi Kumar
4df7021d98
Remove unnecessary subtest with missing input image
2021-01-14 15:38:55 +01:00
Stefan Weil
a522377993
Fix stringrenderer_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-10 23:22:45 +01:00
Stefan Weil
59b3a79e0b
Fix ligature_table_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-10 23:22:45 +01:00
Stefan Weil
3851e30a48
Fix pango_font_info_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-10 23:22:45 +01:00
Shree Devi Kumar
3c71749b86
Delete TESSDATA_BEST_DIR macro
2021-01-08 20:25:26 +01:00
Stefan Weil
e46141ac99
Replace snprintf by strncpy (fix compiler warning)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-08 19:01:26 +01:00
Stefan Weil
ea4f9de4f4
Add include path for leptonica for fuzzer build
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-07 22:30:09 +01:00
Egor Pugin
9710bc0465
More std::vector.
2021-01-07 13:57:57 +03:00
Stefan Weil
66128429e5
Fix include statement for allheaders.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-05 23:18:39 +01:00
Stefan Weil
d000df7e00
Remove remaining parts of tessopt (fix autotools build)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-05 23:06:17 +01:00
Egor Pugin
db43bb43dc
[test] Init FC early.
2021-01-06 00:30:52 +03:00
Egor Pugin
e6b00e6579
[test] Init fontconfig early.
2021-01-05 20:48:09 +03:00
Egor Pugin
6e94564152
[training] More unique ptrs.
2021-01-05 17:03:26 +03:00
Egor Pugin
4415209fd6
Remove tessopt. This fixes mastertrainer test in shared build.
2021-01-05 17:00:27 +03:00
Egor Pugin
d30b5415fd
Reorder headers.
2021-01-05 16:46:24 +03:00
Egor Pugin
4ed601956e
More std::vector.
2021-01-05 14:46:11 +03:00
Egor Pugin
e3dcfb648a
Reorder includes.
2021-01-04 18:11:23 +03:00
Stefan Weil
a96a05df7a
Add some basic tests for ELIST
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 22:02:51 +01:00
Stefan Weil
4186978dfc
Add Leptonica library for ligature_table_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 21:45:27 +01:00
Egor Pugin
fd8907471c
Improve C API. Add tests.
...
1. Add simple C API test in C++ program.
2. Add simple C API test in C program.
3. Fix including capi.h in C++ files.
2021-01-02 03:57:25 +03:00
Stefan Weil
47af1282f4
Make autotools builds for unittest less noisy by default
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 18:17:25 +01:00
Stefan Weil
19213e23a0
Fix broken autotools build for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 17:53:01 +01:00
Egor Pugin
a32c8b2d93
Remove GenericVector::compare_callback. This fixes several tests after previous commit.
2020-12-31 17:26:40 +03:00
Egor Pugin
c86325e2f7
Use TESS_API for every public symbol. Public symbol is exported from the library. This also applies to unit test and training symbols. Users will be limited to public api, but set of exported symbols will be wider still.
...
Remove TESS_LOCAL.
Fix several symbol issues that made visible with these changes.
All build systems must set -fvisibility-hidden for *nix systems.
2020-12-31 16:32:29 +03:00
Egor Pugin
3a66282e92
Remove GOOGLE_TESSERACT ifdefs.
2020-12-31 14:23:52 +03:00
Stefan Weil
fc4002dda8
Remove helpers.h from public API
...
Remove also outdated references to apitypes.h which no longer exists.
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-31 09:06:16 +01:00
Egor Pugin
7b8af67eb5
[test] Fix intsimdmatrix test. Update result value based on updated TRand engine.
2020-12-31 03:28:36 +03:00
Stefan Weil
eb9349a0eb
Run more unittests without requiring tensorflow
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 20:10:26 +01:00
Stefan Weil
a520b2a2fa
Improve CHECK macro for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 20:08:34 +01:00
Stefan Weil
f7d7aa6b95
Make tmp directory for all unit tests
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 18:17:58 +01:00
Egor Pugin
b7df4bc1dd
[test] Create tmp dir in more tests.
2020-12-30 16:44:59 +03:00
Egor Pugin
a3f8172918
[test] Remove set locale as it causes errors on some systems. It includes grouping for numbers, then pid and some other numbers in gtest are formatted incorrectly.
2020-12-30 16:30:40 +03:00
Egor Pugin
aacd8ec3cf
Fix more lstm tests. 6 failing tests left.
2020-12-30 15:15:11 +03:00
Egor Pugin
79226fa7cf
[test] Fix params model test.
2020-12-30 14:20:15 +03:00
Egor Pugin
7300e87f3e
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-30 14:16:33 +03:00
Egor Pugin
14cc5fca5a
[test] Fix shapetable test.
2020-12-30 14:16:10 +03:00
Stefan Weil
688ef20f62
Replace GenericVector<RowInfo> by std::vector<RowInfo>
...
This fixes an LGTM alert:
This parameter of type RowInfo is 144 bytes -
consider passing a const pointer/reference instead.
It might also improve the performance.
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 12:14:43 +01:00
Egor Pugin
fa776eefd9
[test] Disable loading equ.traineddata in equationsdetect test until IdentifySpecialText is turned back on.
2020-12-30 14:12:49 +03:00
Egor Pugin
b538a25809
[test] Reorder includes.
2020-12-30 13:53:49 +03:00
Stefan Weil
3a34f17037
Order and clean include statements
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 10:50:39 +01:00
Stefan Weil
deec8ef46f
Replace std::list by std::vector
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 07:10:29 +01:00
Stefan Weil
4043204c2b
Use old genericvector.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 07:10:29 +01:00
Egor Pugin
7e3ea8e3d3
[test] Fix bitvector test by creating tmp dir. 15 failing tests left.
2020-12-30 03:39:07 +03:00
Egor Pugin
3817fed897
[test] Reorder includes.
2020-12-30 03:33:38 +03:00
Egor Pugin
dc9bfde8ec
[test] Fix mkdir on unix in dawg test.
2020-12-30 03:33:28 +03:00
Egor Pugin
f8957ebcc5
[test] Fix dawg.
2020-12-30 02:38:11 +03:00
Egor Pugin
694f0097fd
Fix baseapi test. Use C++ regex instead of gtest ones.
2020-12-30 01:28:50 +03:00
Stefan Weil
f4e380f64a
Remove serialis.h from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-29 11:28:50 +01:00
Stefan Weil
90af3e7b5c
Remove strngs.h from public API
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00