Commit Graph

4818 Commits

Author SHA1 Message Date
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
Stefan Weil
2369aa5604 Use std::vector, std::string in baseapi.h
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
72663a9a81 Use std::vector, std::string in baseapi.h
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
fec9c11c8c Use std::vector, std::string in baseapi.h
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
64e902ddf7 Remove genericvector.h from public API
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
f462389673 renderer for TessPDFRenderer
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
d55e5f4803 Replace more GenericVector by std::vector
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
4a28d33c58 Replace GenericVector by std::vector in strngs.h and more places
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
3ddc88cccb Use std::vector in TessPDFRenderer
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
7c679e777d Use std::vector for allowed_scripts
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
32d53479ae Use std::vector for vars_vec, vars_values
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
085f6b2572 Use std::list for paragraph models
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
4ebba72919 Use std::vector for paragraph models
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
524fc67165 Fix tesseract --list-langs
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Egor Pugin
e80a8869f5 Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract 2020-12-28 20:38:30 +03:00
Egor Pugin
db9af74aaa [ci] Build unit tests on github ci on linux/macos. 2020-12-28 20:38:16 +03:00
Egor Pugin
02ce392cf3 [sw] Do not build unit tests by default. 2020-12-28 20:37:35 +03:00
Egor Pugin
98974a6913 [test] Fix include order. 2020-12-28 20:36:04 +03:00
Stefan Weil
190be30a96 Remove src/ccutil/doubleptr.h from Makefile.am (fix build regression)
That header file was moved to unittest in
commit 3187f2ef08.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-28 10:23:07 +01:00
Egor Pugin
986b57dd4e Export symbol for unit test. 2020-12-28 04:58:26 +03:00
Egor Pugin
a98d6d9e8e Better symbol visibility fix for unit test. 2020-12-28 04:58:14 +03:00
Egor Pugin
985c599bbd Move training tools into their own dir. 2020-12-28 04:34:52 +03:00
Egor Pugin
f51a945e26 Make symbol visible to fix unit test. 2020-12-28 04:31:00 +03:00
Egor Pugin
4dcfb5006c [test] Correctly use assert instead of expect. 2020-12-28 03:24:05 +03:00
Egor Pugin
6cc8f58080 [sw] Add unit tests. 2020-12-28 02:32:36 +03:00
Egor Pugin
3187f2ef08 Move doubleptr.h to unittests as it is used only there. 2020-12-28 02:32:27 +03:00
Egor Pugin
4175679da6 Revert kdpair, genericheap changes. 2020-12-28 02:31:45 +03:00
Egor Pugin
6cc00aa332 Improve some unit tests. 2020-12-28 01:11:13 +03:00