Stefan Weil
862322c18c
Fix check for images which are too small to scale
...
Images with width == min_width are not too small.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-15 13:53:11 +01:00
Stefan Weil
5fb2509855
Merge pull request #2241 from felixonmars/patch-1
...
Fix a typo in Doxyfile
2019-02-14 21:20:49 +01:00
Felix Yan
d35f119c68
Fix a typo in Doxyfile
2019-02-15 04:07:35 +08:00
zdenop
b67ff533cd
Merge pull request #2227 from rrrapha/doc-makefile
...
Avoid gmake-specific pattern substitution in Makefile.am.
2019-02-14 13:06:52 +01:00
zdenop
6256df1d68
Merge pull request #2238 from stweil/cplusplus14
...
Use C++14 if supported and optionally improve lookup tables
2019-02-14 13:04:04 +01:00
Stefan Weil
50f42ebbfc
Update test submodule
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-14 11:50:57 +01:00
Stefan Weil
c0523ee5a2
Fix compiler warning
...
g++ warning:
src/lstm/functions.h:152:35: warning:
unused parameter ‘x’ [-Wunused-parameter]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-14 10:29:39 +01:00
Stefan Weil
3556152412
Compute function tables at compile time
...
This requires C++ 14. Older compilers still use the old code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-14 10:29:39 +01:00
Stefan Weil
fd6e281c61
Use C++14 compiler if possible
...
This allows using new features of C++14 conditionally.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-13 11:05:34 +01:00
Stefan Weil
b3327f4e90
Remove unneeded checks for snprintf
...
snprintf is a standard function which should be available
on all relevant platforms, so those checks are unnecessary.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-13 08:04:52 +01:00
zdenop
f627b95a4c
Merge pull request #2235 from stweil/tables
...
Simplify tanh and logistic functions and precompute function tables
2019-02-12 17:39:01 +01:00
Stefan Weil
f491eb6188
Simplify tanh and logistic functions and precompute function tables
...
Both functions are called very often, so computing the table values
at program start should be faster than computing them on demand.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-12 12:04:08 +01:00
Shree Devi Kumar
f3362a4b5b
Add renderer to create WordStr box files from images
2019-02-10 19:59:17 +00:00
Egor Pugin
7ca27bb14a
Update appveyor.yml
2019-02-10 18:10:12 +03:00
zdenop
2ae65b2493
Merge pull request #2216 from Shreeshrii/lstmbox
...
Lstmbox
2019-02-10 13:53:41 +01:00
Shree Devi Kumar
311053681c
put common code in AddBoxToLSTM
2019-02-10 09:16:45 +00:00
zdenop
e51f1885e6
Merge pull request #2229 from stweil/warn
...
Fix some compiler warnings
2019-02-10 08:20:23 +01:00
zdenop
d0ce0a45f2
Merge pull request #2228 from stweil/perf_count
...
OpenCL: Remove PERF_COUNT framework
2019-02-10 08:18:27 +01:00
zdenop
366923d851
Merge pull request #2230 from Shreeshrii/resit
...
fix resultiterator_test for extra \n
2019-02-10 08:17:55 +01:00
Shree Devi Kumar
b51c1bf05a
change to const char* as suggested by @stweil
2019-02-10 05:13:18 +00:00
Shree Devi Kumar
8612170321
fix resultiterator_test for extra \n
...
resultiterator_test.cc
2019-02-10 04:58:40 +00:00
Stefan Weil
0c9f7db536
Fix compiler warning (-Wimplicit-fallthrough)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:53:44 +01:00
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
d42413dd17
OpenCL: Remove PERF_COUNT framework
...
It was rarely used, but added a lot of code and an unconditional
dependency on openclwrapper.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 10:58:15 +01:00
Raphael Graf
86b14c32a9
Avoid gmake-specific pattern substitution in Makefile.am.
...
Resolves #2226
2019-02-08 19:39:45 +01:00
Chris Mayo
c3b18cfd27
Improve description of configs and parameters in tesseract(1)
...
Try to make the relationship between configs, -c and --print-parameters
clearer by always using parameter and not variable.
Include the filenames created by each config.
2019-02-06 20:03:51 +00: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
Shree Devi Kumar
0f42fd8c69
change to use bbox coordinates for TEXTLINE for all characters
...
(cherry picked from commit 049db108b2d6cd3a7f52e480212320613117d50b)
2019-02-05 14:03:29 +00:00
Shree Devi Kumar
9c89cd51cf
Add a new renderer to create box files from images for LSTM training
...
(cherry picked from commit 921da6be2bdbda2ddd64514f9b6bec40a336246a)
fix typo
(cherry picked from commit 7bd1a0c80393fce2f34e2845cb26760bcf3791cd)
Add lstmboxrenderer to CMakeLists
(cherry picked from commit cfef3a889aef830725921b5c0218d5e9c633b03e)
fix formatting
(cherry picked from commit 7ba2b01ede7940ed609a073364948ef8c838cd10)
2019-02-05 14:03:29 +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