Commit Graph

5800 Commits

Author SHA1 Message Date
Egor Pugin
0f7212bba7
Merge pull request #3242 from Shreeshrii/ci
Add Macports build with training tools for daily ci test
2021-01-17 20:27:14 +03:00
Shree Devi Kumar
3d494846c8 Add macos to daily ci runs 2021-01-17 17:13:56 +00:00
Stefan Weil
147edc7d06 dailycmake update 2021-01-17 07:11:33 +00:00
Egor Pugin
2b144f37fb
Merge pull request #3241 from Shreeshrii/ci
Github Actions Workflow for daily cmake builds
2021-01-16 16:21:23 +03:00
Stefan Weil
95a4d8023a Fix .github/workflows/dailycmake.yml 2021-01-16 11:45:43 +00:00
Shree Devi Kumar
17ce3344b3 Add dailycmake workflow 2021-01-16 10:27:22 +00:00
Egor Pugin
277cdfae73
Merge pull request #3239 from Shreeshrii/legacy
Do not run textlineprojection_test with disable-legacy, uses OSD
2021-01-16 00:44:26 +03:00
Stefan Weil
c7baf8f17d Add more information shown by combine_tessdata -l
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-15 18:49:51 +01:00
Stefan Weil
3195c8f75f Add new option -l for combine_tessdata to list the network string
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-15 18:49:51 +01:00
Stefan Weil
970eba79e6 Replace STRING by std::string for LSTMRecognizer::network_str_
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-15 18:49:51 +01:00
Stefan Weil
97cfd95872 Replace STRING by char* in LSTMRecognizer
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-15 18:49:51 +01:00
Shree Devi Kumar
fe4951e4d5 Do not run textlineprojection_test with disable-legacy, uses OSD 2021-01-15 13:04:38 +00:00
Egor Pugin
6d165528a2
Merge pull request #3236 from stweil/max_iterations
lstmtraining: Interpret negative value for --max_iterations as epochs
2021-01-15 01:08:15 +03:00
Stefan Weil
73ffcabfe9 lstmtraining: Interpret negative value for --max_iterations as epochs
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-14 19:51:58 +01:00
Egor Pugin
44b4d00761
Merge pull request #3235 from Shreeshrii/ci
Fix config options for dailyunittest GitHub Action
2021-01-14 21:38:59 +03:00
Shree Devi Kumar
2a46b516cd Fix config options for dailyunittest GitHub Action 2021-01-14 17:30:17 +00:00
Stefan Weil
40bdcd2941 Add TESS_API to instantiation of template functions
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-14 18:07:35 +01:00
Stefan Weil
80810218f7 Use explicit int32_t for serialized data type
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-14 18:06:39 +01:00
Stefan Weil
05da41dc60 Replace GenericVector<BlobData> by std::vector<BlobData>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-14 17:23:13 +01:00
Shree Devi Kumar
4df7021d98 Remove unnecessary subtest with missing input image 2021-01-14 15:38:55 +01:00
Robert Pösel
7dcd9b5095 Remove ANDROID_BUILD macro
Build fails when ANDROID_BUILD is defined, because it removes parts of the LSTM engine, but there are still some unguarded references. But removing LSTM engine is not needed as it works perfectly fine on Android.

This macro doesn't provide any benefit anymore and is not even used in current build config. If needed, ANDROID macro should be used instead (which is already used on few places).
2021-01-14 14:31:34 +01:00
Stefan Weil
08f2ba02f7 Fix memory allocation in TFile::DeSerialize(std::vector<T>& data)
lstmtraining crashed when creating traineddata files:

    Error: attempt to subscript container with out-of-bounds index 0, but
    container only holds 0 elements.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-14 12:11:02 +01:00
Egor Pugin
9e78e3e3ab
Merge pull request #3231 from Shreeshrii/ci
Add Github Action for autotools based daily unittests on ubuntu
2021-01-14 13:57:10 +03:00
Shree Devi Kumar
dcb6973f6f Add Github Action for autotools based daily uniitests on ubuntu 2021-01-14 09:25:21 +00:00
Stefan Weil
7c5415a2c1 automake: Fix flat build for doc
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-13 15:57:04 +01:00
Stefan Weil
5e661b9339 Don't use local CP_RESULT_STRUCT variable to initialize elements of std::vector
std::vector passes that local variable by reference, so no individual
instances are used for the new vector elements.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-13 15:57:04 +01:00
Stefan Weil
b0e46085f4 Fix serialization of std::vector (fix issue #3220)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-12 21:23:14 +01:00
Stefan Weil
9b15e65900 Replace resize(0) by clear() for std::vector
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-12 19:24:54 +01:00
Shree Devi Kumar
5104af6a15 Remove --psm 6 for lstm.train in tesstrain.py 2021-01-12 13:26:33 +01:00
Shree Devi Kumar
106b3d1ed0 No --psm 6 for lstm.train 2021-01-12 12:42:53 +01:00
Stefan Weil
e1b9f1b446 automake: Flat build for doc
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-11 21:58:45 +01:00
Robert Pösel
ca9c7ba303 Fix NEON also tesseractmain.cpp 2021-01-11 12:17:25 +01:00
Robert Pösel
1954ee3867 Fix use of NEON on ARMv8
Flag neon_available_ is automatically set to true when __aarch64__ is defined,
but the actual check for neon_available_ required having also HAVE_NEON defined.

Now we check the flag also when only __aarch64__ is defined.
2021-01-11 12:17:16 +01:00
Egor Pugin
15c214be06 Revert "Try to fix aarch64 build on macos."
This reverts commit a6321940dc.
2021-01-11 13:51:35 +03:00
Egor Pugin
c399a6b04e Try to fix cmake build. 2021-01-11 13:47:55 +03:00
Egor Pugin
a6321940dc Try to fix aarch64 build on macos. 2021-01-11 12:53:03 +03: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
Stefan Weil
021237ad2c Add assertion for IntCastRounded
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-10 15:08:31 +01:00
Egor Pugin
af8e24ce03
Update sw.yml 2021-01-10 14:58:30 +03: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
209c1df599 Fix some format strings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-08 18:49:21 +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
b79d73f52e
Merge pull request #3217 from 1480c1/unicode
Makefile.am: remove unicode files
2021-01-07 21:50:05 +03:00
Christopher Degawa
d7f44d4150
Makefile.am: remove unicode files
Signed-off-by: Christopher Degawa <ccom@randomderp.com>
2021-01-07 18:28:43 +00:00
Egor Pugin
8cb1c62259 More std::vector. 2021-01-07 15:13:59 +03:00
Egor Pugin
8d6cad1acc Misc. 2021-01-07 14:33:45 +03:00
Egor Pugin
4f5bd1c562 Move unicodes into files where they are used. 2021-01-07 14:33:02 +03:00