Shree Devi Kumar
efe9ff611f
Limit unicharset from training_text only to Indic languages
2021-03-14 17:58:57 +00:00
Shree Devi Kumar
a589ded25f
Create unicharset from training text to avoid normalization errors
2021-03-14 16:39:00 +00:00
Egor Pugin
f06b2c7c8d
[capi] Restore some of wrongly removed apis.
...
Removed C++ APIs are not restored.
Additionally remove unused C++ typedefs which were in removed C++ functions.
If you still need them, use C++ API instead.
2021-03-14 17:20:52 +03:00
Egor Pugin
dabdaa1def
Misc.
2021-03-14 17:14:41 +03:00
Egor Pugin
c2f3d565e8
Merge pull request #3325 from stweil/string
...
Replace more STRING by std::string
2021-03-14 12:10:05 +03:00
Stefan Weil
7178ebd799
Add missing TESS_API for new function tesseract::split
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-14 08:16:33 +01:00
Stefan Weil
36f9131e04
Move implementation of tesseract::split from header to cpp file
...
This fixes duplicate symbols for some builds.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 23:39:58 +01:00
Stefan Weil
3b0759940c
Replace more STRING by std::string
...
Remove STRING::add_str_int and STRING::add_str_double which are now unused.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 23:16:35 +01:00
Stefan Weil
c9f0da49ca
Replace more STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
91f7675848
Replace more STRING by std::string for src/ccmain
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
d084c7cca8
Replace remaining STRING by std::string for src/api
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
96d1644da1
Replace more STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
a42c6c7dcd
Replace more STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
9cf5b9870d
Replace more STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
51909d5a2e
Replace more STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:52 +01:00
Stefan Weil
d6495d9026
Replace STRING by std::string in src/lstm
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 21:15:51 +01:00
Egor Pugin
59894099bc
Merge pull request #3324 from stweil/nt_symclip
...
Fix network specification for NT_SYMCLIP
2021-03-13 15:35:36 +03:00
Stefan Weil
1f2ec4dfb1
Fix network specification for NT_SYMCLIP
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-13 13:10:37 +01:00
Stefan Weil
6bf5080d4c
Remove unused include statements for strngs.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-12 23:11:08 +01:00
Egor Pugin
11a55c6c79
[readme] Require C++17 for building.
2021-03-13 00:56:40 +03:00
Egor Pugin
a393df5038
Add missing export header.
2021-03-13 00:07:19 +03:00
Egor Pugin
2d10be5209
[clang-format] Format generated protobuf source.
2021-03-13 00:07:03 +03:00
Egor Pugin
1d5b083447
[clang-format] Format unit tests.
2021-03-13 00:06:34 +03:00
Egor Pugin
618b185d14
Include missing config_auto.h
2021-03-12 23:39:18 +03:00
Egor Pugin
8b0c5405e2
Add missing forward decl.
2021-03-12 22:35:30 +03:00
Egor Pugin
0eb7ba88bf
[clang-format] Execute clang format on include and src dirs.
...
Script:
find include src -type f | sort > all.txt
find include src -type f | grep -v "\.cpp" | grep -v "\.h" | sort > skip.txt
comm -23 all.txt skip.txt | xargs clang-format -i
2021-03-12 22:35:02 +03:00
Egor Pugin
afa476bc23
[clang-format] Update config.
2021-03-12 22:33:22 +03:00
Egor Pugin
0e9deb68c9
Revert "Format public API files with 'clang-format-11 -i include/tesseract/*.h'"
...
This reverts commit c20da5e10f
.
2021-03-12 20:20:34 +03:00
Stefan Weil
c20da5e10f
Format public API files with 'clang-format-11 -i include/tesseract/*.h'
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-12 13:26:38 +01:00
Stefan Weil
b68a2a7b47
Fix tatweel_test for C++-20
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-12 13:16:48 +01:00
Stefan Weil
4c6cc5a04d
Replace GenericVector by std::vector in class ImageData
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-12 13:10:25 +01:00
Egor Pugin
520aeb34aa
Merge pull request #3323 from Shreeshrii/ci
...
Actions CI: Add vcpkg build for tesseract 4.1 (windows and linux)
2021-03-12 11:51:44 +03:00
Shree
33c129f50f
Actions CI: comment #push
2021-03-12 05:02:55 +00:00
Shree
edf6e0f433
Actions CI: Add vcpkg build for tesseract 4.1
2021-03-12 04:59:41 +00:00
Stefan Weil
fc00834920
autobuild: Require C++17
...
This completes commit 73a325494e
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-11 21:57:02 +01:00
Ger Hobbelt
779aa79350
Fix build ( #3322 )
...
* fix errors after merge commit: missing changes that are needed too to make this codebase compile.
* Update src/wordrec/wordrec.h
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2021-03-11 21:43:07 +01:00
Egor Pugin
3444618075
Fix linux build.
2021-03-10 15:35:13 +03:00
Egor Pugin
ce058604ba
Pass empty strings into Tesseract::init_tesseract().
2021-03-10 15:21:03 +03:00
Egor Pugin
911dd93f12
Pass init strings as std::string instead of const char * internally. This does not affect public APIs.
2021-03-10 15:17:00 +03:00
Egor Pugin
9792f3c4ff
Remove STRING::size() method.
2021-03-10 14:58:37 +03:00
Egor Pugin
6de97309a1
Remove unused STRING::strdup().
2021-03-10 14:42:50 +03:00
Egor Pugin
f0e30a2af2
Remove unused STRING::unsigned_size().
2021-03-10 14:41:31 +03:00
Egor Pugin
d36adf3d40
Replace STRING::truncate_at() with resize().
2021-03-10 14:40:28 +03:00
Egor Pugin
e9a2fc0083
More std::string replacements.
2021-03-10 14:36:59 +03:00
Egor Pugin
73a325494e
[cmake] Require C++17.
2021-03-10 00:41:47 +03:00
Stefan Weil
0f1296c6f6
Clean implementation for (de-)serialization of a vector
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-08 13:33:48 +01:00
Egor Pugin
0cd6a07e42
Update .travis.yml
2021-03-08 03:02:25 +03:00
Stefan Weil
6cfe604d58
Fix serialization for vector of RecodedCharID
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-07 23:01:25 +01:00
Shreeshrii
33868a52ae
Travis: build linux matrix ( #3320 )
2021-03-07 19:31:02 +01:00
Egor Pugin
576c064b44
Merge pull request #3318 from Shreeshrii/travis
...
Add multiple architectures for travis run
2021-03-06 12:20:25 +03:00