Egor Pugin
1a53ca099a
[cmake] tessopt is a static library.
2020-12-31 18:26:33 +03:00
Egor Pugin
a75f3e8a6a
[cmake] Set hidden visibility by default.
2020-12-31 18:26:15 +03:00
Egor Pugin
cad8cb31bb
Add missing includes.
2020-12-31 17:58:36 +03:00
Egor Pugin
65e230f1a2
Fix linux build.
2020-12-31 17:46:49 +03:00
Egor Pugin
a4daf19dd3
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-31 17:37:37 +03:00
Stefan Weil
96fbe776ea
Partially revert cad0eb4d26
(fix layout_test)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 15:36:28 +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
4d817d09a5
Remove custom string hasher.
2020-12-31 14:26:23 +03:00
Egor Pugin
250fc0023e
Misc.
2020-12-31 14:24:52 +03:00
Egor Pugin
3a66282e92
Remove GOOGLE_TESSERACT ifdefs.
2020-12-31 14:23:52 +03:00
Egor Pugin
d0a730e3d0
Misc.
2020-12-31 13:25:10 +03:00
Egor Pugin
c812d9d894
Use template instead of overloads.
2020-12-31 13:20:21 +03:00
Stefan Weil
72a9dc1448
Make automake builds less noisy by default
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 10:04:53 +01:00
Stefan Weil
cad0eb4d26
Replace more GenericVector by std::vector
...
This fixes two LGTM alerts and might improve the performance:
This parameter of type GenericVector<STRING> is 80 bytes -
consider passing a const pointer/reference instead.
This parameter of type GenericVectorEqEq<const ParagraphMode*> is 80 bytes -
consider passing a const pointer/reference instead.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 09:28:35 +01: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
Egor Pugin
dfbd394a72
Export all simd matrices.
2020-12-31 03:27:18 +03:00
Egor Pugin
2c054b531c
Fix linux build.
2020-12-31 03:06:39 +03:00
Egor Pugin
4ddc919ed0
Correctly use DEBUG macro. C++ compilers do not define it. Instead they define NDEBUG in optimized compilations.
2020-12-31 02:50:07 +03:00
Egor Pugin
ff1a995bfc
Removed unused fwd decl.
2020-12-31 02:45:55 +03:00
Egor Pugin
a7246865fc
Remove unused fwd decls.
2020-12-31 02:43:24 +03:00
Egor Pugin
67218eeb99
Remove unused typedefs.
2020-12-31 02:41:26 +03:00
Egor Pugin
1f834b7f27
Remove unused fwd decl.
2020-12-31 02:39:45 +03:00
Egor Pugin
b01f151027
Remove comment.
2020-12-31 02:39:04 +03:00
Egor Pugin
3af30419db
Move MAX_PATH def out from public header.
2020-12-31 02:35:28 +03:00
Egor Pugin
2252936fc8
Use linear congruential random number generator from C++11.
2020-12-31 02:31:53 +03:00
Egor Pugin
a0509b2feb
Use std::swap instead of manual function.
2020-12-31 02:17:54 +03:00
Egor Pugin
89273c915d
Remove empty DLLSYM macro.
2020-12-31 02:10:46 +03:00
Egor Pugin
8bd1227c3e
Remove public empty header.
2020-12-31 02:05:47 +03:00
Egor Pugin
59863f30ba
[sw] Add new unit tests.
2020-12-30 23:35:17 +03:00
Egor Pugin
a33eb1917e
Merge pull request #3208 from stweil/unittest
...
Run more unittests without requiring tensorflow
2020-12-30 23:26:00 +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
4366d811d4
Fix TFile::DeSerialize, TFile::Serialize for empty vectors
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 19:15:56 +01:00
Stefan Weil
c722671713
Add missing dependencies for dawg_test
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 18:58:44 +01:00
Egor Pugin
9390ff5a4a
Merge pull request #3206 from stweil/api
...
Make tmp directory for all unit tests, remove RecognizeForChopTest from public API and replace some old-style type casts
2020-12-30 20:31:08 +03: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
Stefan Weil
30eeb7f01a
Replace some old-style type casts
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 17:56:59 +01:00
Stefan Weil
faf0407dff
Remove RecognizeForChopTest from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 17:55:40 +01:00
Egor Pugin
87a2adabd8
Merge pull request #3205 from stweil/api
...
Remove TessTruthCallback from public API
2020-12-30 18:00:01 +03:00
Stefan Weil
d1d176a280
Remove TessTruthCallback from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 15:44:44 +01:00
Stefan Weil
588ac3fed2
Remove TessTruthCallback from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 15:38:11 +01:00
Egor Pugin
b7df4bc1dd
[test] Create tmp dir in more tests.
2020-12-30 16:44:59 +03:00
Egor Pugin
22a6b309c1
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-30 16:33:18 +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
Stefan Weil
ebafb19a43
Replace GenericVector<ParamsTrainingHypothesis> by std::vector<ParamsTrainingHypothesis>
...
This fixes an LGTM alert:
This parameter of type ParamsTrainingHypothesis is 136 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 13:26:44 +01: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