Stefan Weil
d91c316ab1
FontInfo: Make sure that deleted member variables can no longer be used
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
877e62db55
Fix compiler warning (-Wmaybe-uninitialized)
...
gcc warning:
src/lstm/recodebeam.cpp:270:41: warning: ‘current_char’ may be used uninitialized in this function [-Wmaybe-uninitialized]
It's a false positive, but setting the variable to 0 satisfies the compiler.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
33f6dc2a67
Fix compiler warnings (-Wformat-truncation=)
...
gcc warnings:
src/viewer/scrollview.cpp:404:31: warning: ‘%s’ directive output may be
truncated writing up to 4095 bytes into a region of size between 4084 and 4093 [-Wformat-truncation=]
src/viewer/scrollview.cpp:572:31: warning: ‘%s’ directive output may be
truncated writing up to 4095 bytes into a region of size between 4084 and 4093 [-Wformat-truncation=]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
2a355ea103
Fix compiler warnings (-Wimplicit-fallthrough)
...
gcc warnings:
src/ccmain/docqual.cpp:734:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
src/ccmain/docqual.cpp:764:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
src/ccmain/docqual.cpp:782:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
[...]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
aa2dcca295
Fix compiler warnings (-Wstringop-truncation)
...
gcc warnings:
src/api/tesseractmain.cpp:252:14: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound 255
equals destination size [-Wstringop-truncation]
src/ccutil/unicharset.h:66:12: warning:
‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
src/ccutil/unicharset.cpp:806:12: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:09 +01:00
Stefan Weil
ec8f02c0de
Merge pull request #2223 from cjmayo/get_images
...
Rename get.image config to get.images and install
2019-02-05 22:10:32 +01:00
Stefan Weil
33b2bc9e89
Merge pull request #2224 from cjmayo/tidy_man1
...
Tidy tesseract(1)
2019-02-05 22:07:52 +01:00
Chris Mayo
da279e4216
Tidy tesseract(1)
...
A typo and missing full stops.
2019-02-05 19:58:40 +00:00
Chris Mayo
6dc48adfee
Rename get.image config to get.images and install
2019-02-05 19:57:53 +00:00
Egor Pugin
56725de8b7
Update appveyor.yml
2019-02-03 16:12:28 +03:00
zdenop
c999551d0e
Merge pull request #2215 from Shreeshrii/boxtiff
...
allow user specified box/tiff pairs
2019-02-02 20:39:05 +01:00
Shreeshrii
c28a68115e
Merge branch 'master' into boxtiff
2019-02-02 23:42:39 +05:30
zdenop
9bcfa90c59
Merge pull request #2212 from stweil/doc
...
Fix build rule for manpages
2019-02-02 18:39:40 +01:00
zdenop
34aeb00771
Merge pull request #2217 from Shreeshrii/resultiterator_test
...
disable some subtests in resultiterator_test
2019-02-02 18:29:06 +01:00
Stefan Weil
f256b71cf4
Merge pull request #2214 from Shreeshrii/xsize
...
Use --xsize instead of --x_size
2019-02-02 13:44:16 +01:00
Shree Devi Kumar
32af6be4ba
disable some subtests in resultiterator_test
...
(cherry picked from commit 147ef6e5f17f6cd5eedae9c81d291ad296f37090)
2019-02-02 11:54:17 +00:00
Shree Devi Kumar
d9590f8adf
allow user specified box/tiff pairs with tesstrain.sh
2019-02-02 11:35:45 +00:00
Shree Devi Kumar
323361b902
allow user specified box/tiff pairs with tesstrain.sh
2019-02-02 11:33:32 +00:00
Shree Devi Kumar
ad223296af
use --xsize instead of --x_size
...
(cherry picked from commit 94b8988b8cca3812137933db00750bd6e2e84e32)
2019-02-02 11:08:34 +00:00
Zdenko Podobný
31c48a04d4
fix travis
2019-02-01 20:01:33 +01:00
Stefan Weil
39ed30ad83
Fix build rule for manpages
...
This is similar to commit 2106cba0a9
which fixed doc/generate_manpages.sh.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-01 19:47:46 +01:00
Zdenko Podobný
0e090cd230
fix typo
2019-02-01 18:28:47 +01:00
Zdenko Podobný
bd7e42d9e7
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
...
* 'master' of https://github.com/tesseract-ocr/tesseract :
Use universal location for docbook.xsl
2019-02-01 18:03:57 +01:00
Zdenko Podobný
114bc5016e
improve cmake configuration
2019-02-01 18:02:28 +01:00
Chris Mayo
2106cba0a9
Use universal location for docbook.xsl
...
xsltproc will use the system catalog to find the local path.
Pass --nonet option to ensure the Internet is not used.
2019-02-01 17:55:59 +01:00
zdenop
0c2557f5e7
Merge pull request #2211 from stweil/icu-fix
...
configure: Remove header check for ICU
2019-02-01 14:06:40 +01:00
Stefan Weil
66da4df11d
configure: Remove header check for ICU
...
It wrongly detects old versions of ICU as valid.
Checking with pkg-config is sufficient and also sets ICU_UC_LIBS.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-01 10:06:34 +01:00
Mikhail Akopov
7be04342cf
Fix typo
2019-02-01 09:58:44 +01:00
Stefan Weil
b49806766e
Fix AVX2 support for Windows builds with MSC
...
It was never detected, so the existing code for AVX2
was compiled but never used.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-30 11:40:17 +01:00
zdenop
fc55b5872d
use AVX2 SSE for cmake&clang on Windows
2019-01-29 20:04:44 +01:00
zdenop
fd881e4486
fix cmake PACKAGE_VERSION to behave same way as in autotools
2019-01-29 20:01:55 +01:00
Stefan Weil
394839cdd7
Fix cmake compiler flags for AVX/SSE support
...
Commit 5f96ac1a71
had a typo
in the filename (simdetect.cpp / simddetect.cpp) which caused
a regression: AVX / AVX2 / SSE was no longer used.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-29 17:27:36 +01:00
Stefan Weil
b60321e6b8
Update test submodule
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-29 17:04:41 +01:00
zdenop
44038cb5e8
Merge pull request #2200 from Shreeshrii/master
...
fix and enable more unittests
2019-01-27 08:24:41 +01:00
Shree Devi Kumar
4d9bc11fd3
add --xsize as parameter for tesstrain
2019-01-27 07:00:25 +00:00
Shree Devi Kumar
1ac76d8825
Partially fix and enable more unittests
...
Add more subtests to langmodel_test
Add more subtests to langmodel_test
fix and enable lstmtrainer_test
fix and enable some subtests from recodebeam_test
partial fix for resultiterator_test
fix typo removing the terminating linefeed.
fix typo
changes
2019-01-27 06:49:57 +00:00
Shree Devi Kumar
eaf5deb6b3
Disable ligature related subtest in stringrenderer
2019-01-27 06:49:56 +00:00
Stefan Weil
8f87ebb463
Update test submodule
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-26 17:07:53 +01:00
Stefan Weil
14d5547bf0
Update test submodule
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-26 10:40:17 +01:00
zdenop
7ddca79f12
Merge pull request #2194 from Shreeshrii/master
...
Disable ligature related subtest in stringrenderer
2019-01-25 07:21:38 +01:00
zdenop
b30e92fb8a
turn off openmp build for cmake (issue #263 )
2019-01-24 23:03:47 +01:00
Shree Devi Kumar
51604dd170
Disable ligature related subtest in stringrenderer
2019-01-24 18:51:33 +00:00
Stefan Weil
50f5662723
Merge pull request #2193 from Shreeshrii/master
...
More updates to LSTM related unittests
2019-01-24 17:11:00 +01:00
Shree Devi Kumar
dbb12d6fde
more updates to lstm related unittests
2019-01-24 15:39:37 +00:00
zdenop
9e47105977
Merge pull request #2192 from stweil/unittest
...
unittest: Skip test is traineddata is missing in applybox_test
2019-01-24 16:35:56 +01:00
Stefan Weil
86b0f3625e
unittest: Skip test is traineddata is missing in applybox_test
...
Many tests have preconditions like a correct version of the test submodule
or installed traineddata files at the right location. They fail or even
crash if those preconditions are not met.
The latest version of Googletest supports skipping single tests with
GTEST_SKIP which is used here to skip tests in applybox_test when
tessdata/eng.traineddata is missing.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-24 16:10:52 +01:00
Shree Devi Kumar
36906064a5
Add LF to INFO msgs in lstm_test
2019-01-24 11:40:53 +00:00
Stefan Weil
87a4fbac05
Update test submodule
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-24 11:29:22 +01:00
Stefan Weil
14086af474
unittest: Add missing Leptonica library for stringrenderer_test
...
It is needed for builds without `--disable-shared`.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-24 11:29:22 +01:00
Stefan Weil
6b7f7db63e
Fix and enable shapetable_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-24 11:23:20 +01:00