Stefan Weil
c5525c4458
Remove wrong description for GenericVector::set_compare_callback and simplify code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-23 08:50:01 +02:00
Stefan Weil
6a0fc4f89f
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-23 08:49:18 +02:00
zdenop
c614907ea0
tesstrain_utils.sh: remove redundant code
2019-06-23 08:48:23 +02:00
Stefan Weil
6a39b81d45
tesscallback: Remove more unused code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-20 14:14:00 +02:00
Stefan Weil
3cdafa0fa1
4.1.0 Release candidate 4
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-18 09:48:36 +02:00
Stefan Weil
d7d0500030
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-18 09:46:16 +02:00
Egor Pugin
4d5eb6d304
Remove old and misguiding build steps on windows.
2019-06-18 09:39:25 +02:00
Stefan Weil
2f51af0f60
ocrfeatures: Remove locally used functions from global interface
...
ReadFeature, WriteFeature are only used locally.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-18 09:38:32 +02:00
Stefan Weil
9491538fb9
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:07:42 +02:00
Stefan Weil
9a5f72479a
Replace TessBaseAPI::CatchSignals by a dummy function
...
That function is now a dummy which just exists to be API compatible.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-17 14:55:05 +02:00
zdenop
cf512d3804
4.1.0-rc3 => VERSION
2019-06-17 10:25:37 +02:00
Zdenko Podobný
c400bdff7b
Merge branch 'abi_comp' into 4.1
...
* abi_comp:
restore CatchSignals to fix API compatibility
fix build
2019-06-16 21:11:07 +02:00
Zdenko Podobný
7160888653
Revert "Integrated Timesteps per symbol into ChoiceIterator"
...
This reverts commit 4d3455e1de
.
2019-06-16 21:10:18 +02:00
Zdenko Podobný
78ced35a8b
restore CatchSignals to fix API compatibility
2019-06-16 21:08:13 +02:00
Zdenko Podobný
c5105c5325
fix build
2019-06-16 20:30:00 +02:00
Zdenko Podobný
4d3455e1de
Integrated Timesteps per symbol into ChoiceIterator
...
Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
# Conflicts:
# src/ccmain/ltrresultiterator.cpp
2019-06-16 19:22:19 +02:00
zdenop
9897bc9c8d
cmake: backport master changes
2019-06-16 18:54:41 +02:00
zdenop
5d23dfa5ce
create OUTPUT_DIR did not exist; fixes #2497
2019-06-16 18:37:03 +02:00
Stefan Weil
153b921c35
unittest: Catch missing eng.traineddata in baseapi_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:37:03 +02:00
Stefan Weil
ce82facc2f
unittest: Fix and enable normstrngs_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:37:03 +02:00
Stefan Weil
c01b3229fe
unittest: Fix and enable textlineprojection_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:37:03 +02:00
Stefan Weil
bb2ea347b1
unittest: Fix and enable scanutils_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:36:21 +02:00
Shree
3729b7b321
Allow saving of box/tiff pairs during base tesseract training
2019-06-16 18:36:21 +02:00
Shree
dfcdfe565f
Allow saving of box/tiff pairs during base tesseract training
2019-06-16 18:36:21 +02:00
Shree
706a2330e2
Allow saving of box/tiff pairs during base tesseract training
2019-06-16 18:35:37 +02:00
Stefan Weil
35b8826289
unittest: Fix and enable ligature_table_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:35:19 +02:00
Egor Pugin
15da5c1206
[sw] Remove inexistent include dirs.
2019-06-16 18:35:19 +02:00
Egor Pugin
5b32be82f4
[sw] Exclude missing include dir.
2019-06-16 18:35:19 +02:00
Egor Pugin
f9da14eca1
Update appveyor.yml
2019-06-16 18:35:19 +02:00
Egor Pugin
b6f9ab6616
Update sw script.
2019-06-16 18:34:31 +02:00
zdenop
249acaed28
cmake: using c++ standard for g++
2019-06-16 18:34:14 +02:00
Stefan Weil
2f6f77bb55
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-16 18:34:02 +02:00
İsmail Dönmez
796129ea58
Fix OpenMP builds on Unix
2019-06-16 18:33:42 +02:00
İsmail Dönmez
9fcef36bbb
Do not hardcode c++11 for unix builds
2019-06-16 18:33:30 +02:00
İsmail Dönmez
911a991657
Detect and use C++17 support for CMake builds
2019-06-16 18:33:03 +02:00
Stefan Weil
8204ca0848
Add dot product implementation using std::inner_product
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:32:31 +02:00
Stefan Weil
d33ced1958
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-06-16 18:32:21 +02:00
Shree
26f4126115
Update documentation for unicharset_extractor
2019-06-16 18:32:12 +02:00
zdenop
ff45801dc5
fix packaging appveyor artifacts
2019-06-16 18:32:03 +02:00
Stefan Weil
6e7dcc12e0
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-06-16 18:31:50 +02:00
Stefan Weil
b0e0e27abf
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-06-16 18:31:42 +02:00
Stefan Weil
90b12b3afa
scanedg: Add const attributes
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:31:10 +02:00
Stefan Weil
fdb3f58c6c
unittest: Remove unused methods
...
This fixes compiler warnings.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:31:01 +02:00
Stefan Weil
9b9d4bf0fa
Remove EXTERN macro
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:30:54 +02:00
Stefan Weil
927d1b8f9e
Remove unused macros
...
This fixes compiler warnings from clang++ like these ones:
src/ccutil/params.cpp:34:9: warning: macro is not used [-Wunused-macros]
src/cutil/oldlist.cpp:67:9: warning: macro is not used [-Wunused-macros]
src/cutil/oldlist.cpp:68:9: warning: macro is not used [-Wunused-macros]
src/cutil/oldlist.cpp:78:9: warning: macro is not used [-Wunused-macros]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:30:44 +02:00
Stefan Weil
831a3e6167
configure: Fix cross builds (check for TensorFlow header)
...
AC_CHECK_FILE does not work in cross builds. Such builds aborted.
Replace it by AC_CHECK_HEADERS. This fixes cross builds.
To enable TensorFlow in cross builds, more work is needed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:30:22 +02:00
Stefan Weil
337a467d60
Fix compiler errors for old gcc
...
Travis CI with gcc 4.8 failed with errors.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:30:09 +02:00
Stefan Weil
4712a5ebd8
Remove some unused functions, constants and variables
...
This fixes compiler warnings, for example:
src/ccutil/strngs.cpp:36:11: warning: unused variable 'kMaxDoubleSize' [-Wunused-const-variable]
src/viewer/svutil.cpp:320:13: warning: unused function 'TessFreeAddrInfo' [-Wunused-function]
src/ccstruct/werd.cpp:32:19: warning: unused variable 'CANT_SCALE_EDGESTEPS' [-Wunused-const-variable]
src/textord/bbgrid.cpp:103:10: warning: unused variable 'old_tright' [-Wunused-variable]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:29:59 +02:00
Stefan Weil
38f348627b
training: Add missing static attributes
...
That fixes several warnings from clang++ like the following one:
src/training/combine_lang_model.cpp:36:1: warning: no previous extern declaration for non-static variable 'FLAGS_lang_is_rtl' [-Wmissing-variable-declarations]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:29:49 +02:00
Stefan Weil
66e5689167
training: Move declarations from cpp files to h file
...
That fixes several warnings from clang++ like the following one:
src/training/commontraining.cpp:95:1: warning: no previous extern declaration for non-static variable 'FLAGS_D' [-Wmissing-variable-declarations]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-16 18:29:37 +02:00