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
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
Stefan Weil
536a676250
Replace GenericVector<WordData> by std::vector<WordData>
...
This fixes an LGTM alert:
This parameter of type WordData is 112 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
Stefan Weil
fbc807ce99
Remove unused local function CharCoverageMapToBitmap
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 12:14:43 +01:00
Stefan Weil
83d97ffc80
Remove redundant comparison
...
This fixes an LGTM alert:
Comparison is always true because i >= 2.
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 12:14:43 +01:00
Stefan Weil
f3acab507d
Fix arguments for tprintf
...
This fixes two LGTM alerts:
This argument should be of type 'int' but is of type '_Bit_reference'
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
53503b34be
Fix declaration for C_BLOB
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 11:33:29 +01:00
Stefan Weil
7866677a0c
avx2: Remove unused local variables
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 11:33:29 +01:00
Stefan Weil
1305ac8185
Fix dependency for fuzzer-api
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 11:33:29 +01:00
Stefan Weil
96e3b52936
Remove unused function CompareSTRING
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 11:33:29 +01:00
Egor Pugin
3b83b061e6
Merge pull request #3203 from stweil/std-vector
...
Replace more GenericVector by std::vector and clean include statements
2020-12-30 13:28:55 +03:00
Stefan Weil
2cf70d6164
Replace more GenericVector by std::vector
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 10:51:12 +01: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
Egor Pugin
17b5f46385
Merge pull request #3202 from stweil/fix2
...
Fix unittests
2020-12-30 11:55:35 +03:00
Stefan Weil
3603c740e7
Fix ShapeTable::AddUnicharToResults (fix mastertrainer_test)
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 07:10:29 +01:00
Stefan Weil
4c94d09047
Replace more GenericVector by std::vector
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 07:10:29 +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
38ffaf60f3
[sw] Test updates. 18->17 failed tests left.
2020-12-30 02:39:51 +03:00
Egor Pugin
f8957ebcc5
[test] Fix dawg.
2020-12-30 02:38:11 +03:00
Egor Pugin
482824c109
Fix trie's word sort comparator.
2020-12-30 02:37:53 +03:00
Egor Pugin
37e760d9c2
[test] Fix unicharset. 21->18 failed tests remaining.
2020-12-30 02:11:58 +03:00
Egor Pugin
06f8942402
[sw] Build targets with utf-8 flag on msvc.
2020-12-30 02:10:25 +03:00
Egor Pugin
694f0097fd
Fix baseapi test. Use C++ regex instead of gtest ones.
2020-12-30 01:28:50 +03:00
Egor Pugin
62172580a9
Update appveyor.yml
2020-12-29 15:53:24 +03:00
Egor Pugin
354bdc7398
Merge pull request #3199 from stweil/serialis
...
Remove serialis.h from public API
2020-12-29 14:22:17 +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
e2683e17fc
Remove unused DocumentData::SaveToBuffer
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-29 10:43:00 +01:00
Egor Pugin
fb3ab7fde4
Merge pull request #3198 from stweil/new-api
...
New Tesseract API without GenericVector and STRING
2020-12-29 02:30:01 +03:00
Egor Pugin
f190c85682
Update src/api/tesseractmain.cpp
...
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2020-12-29 00:22:28 +03:00
Stefan Weil
c8be22f313
Fix nullptr assignment in TessBaseAPI
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-28 21:03:29 +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
Stefan Weil
03884c370c
Replace STRING by std::string in ResultIterator
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
a007cbeb57
Replace STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
d37a9319ec
Remove unused TessBaseAPIInit from capi.h
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00