Stefan Weil
3159f42257
Remove unused GenericVector::dot_product
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-22 12:59:21 +02:00
Stefan Weil
bef73d9956
Remove unused GenericVector::compact
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-22 12:59:08 +02:00
Egor Pugin
3c6a04ea1a
Merge pull request #2512 from stweil/tessresultcallback
...
Simplify class LSTMTrainer
2019-06-22 13:41:21 +03:00
Stefan Weil
2a9b2fb32a
Remove wrong description for GenericVector::set_compare_callback and simplify code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-22 11:22:07 +02:00
Stefan Weil
bd13069fe8
Simplify class LSTMTrainer
...
The function pointers and callbacks file_reader_, file_writer_,
checkpointer_reader_ and checkpoint_writer_ are always set to
the same values. Replacing them by direct function calls
simplifies the code and allows removing more code from tesscallback.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-22 09:18:13 +02:00
zdenop
dff33d6d93
Merge pull request #2510 from stweil/tessresultcallback
...
Simplify indirect call of LMPainPoints::GeneratePainPoint
2019-06-22 06:55:27 +02:00
Stefan Weil
3871caae86
Simplify indirect call of LMPainPoints::GeneratePainPoint
...
It does neither need a temporary TessResultCallback2 nor the function
LMPainPoints::GenerateForBlamer.
This also allows removing more code from tesscallback.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-21 17:09:33 +02:00
zdenop
60b4c68d31
tesstrain_utils.sh: remove redundant code
2019-06-20 18:42:29 +02:00
Stefan Weil
5f23290655
tesscallback: Remove more unused code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-20 08:38:00 +02:00
Egor Pugin
21514457d4
Remove old and misguiding build steps on windows.
2019-06-17 18:53:36 +03:00
Stefan Weil
b967c62880
unittest: Add missing Leptonica library for textlineprojection_test
...
It is needed for builds with --enable-shared.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-17 15:10:16 +02:00
Stefan Weil
2c78735d97
ocrfeatures: Remove locally used functions from global interface
...
ReadFeature, WriteFeature are only used locally.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-17 15:09:39 +02:00
zdenop
a3593d994b
Merge pull request #2499 from stweil/embedded
...
Remove code for embedded build
2019-06-17 10:24:45 +02:00
Stefan Weil
674d6a90d8
Remove code for embedded build
...
That code is unrelated to Tesseract and can be easily implemented
by external projects which require it.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-17 09:55:33 +02:00
zdenop
60aee9f821
create OUTPUT_DIR did not exist; fixes #2497
2019-06-16 15:07:16 +02:00
Stefan Weil
ceabab8373
unittest: Catch missing eng.traineddata in baseapi_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 08:11:16 +02:00
Stefan Weil
bbd3626d77
unittest: Fix and enable normstrngs_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 08:01:11 +02:00
Stefan Weil
73e5241004
unittest: Fix and enable textlineprojection_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-15 10:22:44 +02:00
zdenop
982bdf3845
Merge pull request #2495 from stweil/scanutils_test
...
unittest: Fix and enable scanutils_test
2019-06-14 20:45:28 +02:00
zdenop
fad96db497
Merge pull request #2494 from Shreeshrii/master
...
Allow saving of box/tiff pairs during legacy tesseract training
2019-06-14 20:44:49 +02:00
Stefan Weil
e0e29126ac
unittest: Fix and enable scanutils_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-14 16:51:39 +02:00
Shree
6fa4587949
Allow saving of box/tiff pairs during base tesseract training
2019-06-14 09:35:39 +00:00
Shree
45cdf741ae
Allow saving of box/tiff pairs during base tesseract training
2019-06-14 09:32:41 +00:00
Shree
832c6edb97
Allow saving of box/tiff pairs during base tesseract training
2019-06-14 09:25:54 +00:00
zdenop
3afc946d5e
Merge pull request #2492 from jbarlow83/fix-text2image
...
Fix text2image compilation on C++17 compilers
2019-06-14 07:45:14 +02:00
James R. Barlow
a9890afd12
Fix text2image compilation on C++17 compilers
...
C++17 drops support for `std::random_shuffle`, breaking C++17 compilers
that run to compile text2image.cpp. std::shuffle is valid on C++11
through C++17, so use std::shuffle instead.
Due to the use `std::random_shuffle`, `text2image --render_ngrams`
would not give consistent results for different compilers or platforms.
With the current change, the same random number generator is used for
all platforms and initialized to the same seed, so training output
should be consistent.
2019-06-13 16:07:20 -07:00
Stefan Weil
3c507100c6
unittest: Fix and enable ligature_table_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-11 16:40:23 +02:00
Egor Pugin
5717b098aa
[sw] Remove inexistent include dirs.
2019-06-08 17:45:37 +03:00
Egor Pugin
c570772bce
[sw] Exclude missing include dir.
2019-06-08 17:41:02 +03:00
Egor Pugin
17c8ac29a2
Update appveyor.yml
2019-06-06 13:31:55 +03:00
Egor Pugin
421e3e44cb
Update sw script.
2019-06-06 00:56:12 +03:00
zdenop
5e62d02230
cmake: using c++ standard for g++
2019-06-01 21:49:30 +02:00
Stefan Weil
b9a31eca37
Revert "Do not hardcode c++11 for unix builds"
...
This reverts commit 4348793bd5
.
It is needed for Travis CI based on Ubuntu Trusty.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-01 17:42:24 +02:00
zdenop
359f3c555d
Merge pull request #2477 from ismail/master
...
Fix OpenMP builds on Unix
2019-05-31 15:42:06 +02:00
İsmail Dönmez
ab28df7448
Fix OpenMP builds on Unix
2019-05-31 14:18:26 +02:00
İsmail Dönmez
4348793bd5
Do not hardcode c++11 for unix builds
2019-05-31 14:11:11 +02:00
İsmail Dönmez
5df58fc979
Detect and use C++17 support for CMake builds
2019-05-31 14:11:11 +02:00
zdenop
ee2d7172b7
Merge pull request #2475 from stweil/std
...
Add dot product implementation using std::inner_product
2019-05-31 13:31:57 +02:00
zdenop
7b87389e54
Merge pull request #2474 from stweil/c++
...
Use C++17 compiler if possible
2019-05-31 13:31:29 +02:00
zdenop
a1df37bc8f
Merge pull request #2473 from Shreeshrii/master
...
Update documentation for unicharset_extractor
2019-05-31 13:30:51 +02:00
Stefan Weil
fefd521a49
Add dot product implementation using std::inner_product
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-31 12:07:17 +02:00
Stefan Weil
ca885da5d3
Use C++17 compiler if possible
...
This allows using new features of C++17 conditionally.
Simplify also the code which checks and sets the C++ version.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-31 10:40:56 +02:00
Shree
00abf57d02
Update documentation for unicharset_extractor
2019-05-31 08:20:19 +00:00
zdenop
7d3e1324a8
fix packaging appveyor artifacts
2019-05-29 08:39:56 +02:00
Stefan Weil
e0c2f0a782
Fix crash in PreloadRenderers with nullptr outputbase
...
The crash could be triggered by a wrong command line.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-29 07:46:29 +02:00
Stefan Weil
9a4bd041c8
Fix build for unittests
...
Commit 29f2cff203
was the wrong fix
for the compiler warnings because it broke the unittest build.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-26 21:36:34 +02:00
Egor Pugin
4db6b9ebc6
Merge pull request #2466 from stweil/warnings
...
Fix more compiler warnings (mostly unused macros, unused methods)
2019-05-26 22:06:28 +03:00
Stefan Weil
2c23e7ead5
scanedg: Add const attributes
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-26 20:27:21 +02:00
Stefan Weil
9551c3d413
unittest: Remove unused methods
...
This fixes compiler warnings.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-26 20:27:21 +02:00
Stefan Weil
4b3bbd908a
Remove EXTERN macro
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-26 20:27:21 +02:00