Commit Graph

1792 Commits

Author SHA1 Message Date
Egor Pugin
5a37a8b593 Update CMakeLists.txt 2017-03-14 17:26:53 +03:00
Egor Pugin
5ca1e12908 Update appveyor.yml 2017-03-14 02:09:09 +03:00
Egor Pugin
019d16c203 Update appveyor.yml 2017-03-14 02:02:02 +03:00
Egor Pugin
8349da8d26 Update appveyor.yml 2017-03-12 23:26:43 +03:00
zdenop
323f26f6cc Merge pull request #755 from stweil/doc
Fix some typos in comments (found by codespell)
2017-03-10 20:02:46 +01:00
Stefan Weil
becec34057 Fix some typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-10 19:50:17 +01:00
zdenop
31486f7c3c Merge pull request #700 from elopio/snapcraft
Add the packaging metadata to build the tesseract snap
2017-03-10 08:15:11 +01:00
zdenop
fe986dfd34 Merge pull request #752 from stweil/warn
Remove some unused local variables and functions
2017-03-10 08:13:06 +01:00
zdenop
ace9d2a311 Merge pull request #750 from RandomDSdevel/autogen_sh-fix_1
[`autogen.sh`:]  Abstract the absolute path of `libtoolize` or `glibtoolize` away into `$LIBTOOLIZE`.
2017-03-10 08:11:42 +01:00
Bryce Glover
df887307a9 [autogen.sh:] Improve libtoolize invocation message.
Use the `$LIBTOOLIZE` variable inside the message to abstract over the two possible variants of the tool which
can be invoked.
2017-03-09 18:45:31 -05:00
Bryce Glover
bcba09c85d [autogen.sh:] Clarify libtoolize/glibtoolize existence check error message.
Explicitly mention the latter variant of the tool inside said error message.
2017-03-09 18:45:31 -05:00
Bryce Glover
e08ed04412 [autogen.sh:] Reduce in-script comment block width to 80 characters.
This is with respect to the comment preceding the `libtoolize`/`glibtoolize` existence check I introduced.
2017-03-09 18:45:31 -05:00
Bryce Glover
da4f7fdb0c [autogen.sh:] Abstract the absolute path of libtoolize or glibtoolize away into $LIBTOOLIZE.
Increase portability by insulating `autogen.sh` from platform variance.
2017-03-09 18:45:30 -05:00
Egor Pugin
b6eb8bebb1 Update CMakeLists.txt 2017-03-10 00:24:05 +03:00
Stefan Weil
dabf3f3dbd classify: Remove unused local function
This fixes a compiler warning:

classify/trainingsampleset.cpp:510:13: warning:
 'Pix* tesseract::DebugSample(const UNICHARSET&, tesseract::TrainingSample*)'
 defined but not used [-Wunused-function]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-09 16:19:21 +01:00
Stefan Weil
363f13157b ccutil: Remove unused variable
This fixes a compiler warning:

ccutil/scanutils.cpp:284:7: warning:
 variable 'sign' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-08 07:38:59 +01:00
Stefan Weil
7b33dad059 api: Remove unused variables
This fixes a compiler warning:

api/baseapi.cpp:1621:17: warning:
 variable 'font_name' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-08 07:38:46 +01:00
Stefan Weil
dcc86664e2 lstm: Remove unused variable
This fixes a compiler warning:

lstm/input.cpp:141:7: warning: unused variable 'width' [-Wunused-variable]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-08 07:30:31 +01:00
zdenop
ae53ed6a07 Merge pull request #749 from stweil/warn
Fix indentation after conditional [-Wmisleading-indentation]
2017-03-07 19:24:50 +01:00
Stefan Weil
cd925fd812 Fix indentation after conditional [-Wmisleading-indentation]
The indentation is wrong since commit
fd0683f9e0 and results in a gcc warning:

api/baseapi.cpp: In member function 'bool tesseract::TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8*, size_t, const char*, const char*, int, tesseract::TessResultRenderer*, int)':
api/baseapi.cpp:986:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (tessedit_page_number >= 0)
     ^~
api/baseapi.cpp:988:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
       ^~~

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-07 19:05:40 +01:00
Egor Pugin
b851d47b9c Merge pull request #742 from stweil/doc
Use camel case for GitHub in README.md
2017-03-03 01:05:45 +03:00
Stefan Weil
ef113d1061 Use camel case for GitHub in README.md
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-03-02 15:16:28 +01:00
Egor Pugin
d3a694af77 Merge pull request #741 from solomennikm/fix-reading-carriage-return-in-config-files
Fix reading carriage return in config files
2017-03-01 16:18:07 +03:00
Mikhail Solomennik
ba4b60374d Correct reading config files with \r\n 2017-03-01 14:41:17 +03:00
zdenop
e68e48772d Merge pull request #738 from stweil/avx
Support AVX for 32 bit platforms
2017-02-27 19:35:19 +01:00
Stefan Weil
e663d00fbe Support AVX for 32 bit platforms
_mm256_extract_epi64 is not available for 32 bit platforms,
but it can be replaced by "a very simple workaround".

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-02-27 11:15:28 +01:00
Egor Pugin
6a7831b06d Remove global sse define from cppan. 2017-02-24 11:59:08 +03:00
Egor Pugin
182c6bb9e7 Fix cppan dir. 2017-02-23 20:47:17 +03:00
Egor Pugin
e376ffc5fe Fix avx on windows. 2017-02-23 19:29:48 +03:00
Egor Pugin
4cd5e91171 Update cppan dependencies. 2017-02-23 15:54:56 +03:00
Egor Pugin
5118384542 Fix sse4.1 on windows. 2017-02-23 15:50:09 +03:00
Egor Pugin
0dcb6b3547 Rename cppan/cmake projects. 2017-02-23 15:39:58 +03:00
Zdenko Podobný
a011b15b0d fix #712: Ghostscript mangling Tesseract-produced PDFs 2017-02-15 17:09:37 +01:00
Egor Pugin
2f10be5f6b Update CMakeLists.txt 2017-02-07 17:50:30 +03:00
zdenop
d79c11b648 Merge pull request #702 from stweil/typo
Fix typo in comment
2017-02-05 15:59:22 +01:00
Stefan Weil
f6eed019ab Fix typo in comment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-02-05 12:51:09 +01:00
zdenop
0ff26ee3de Merge pull request #698 from stweil/configure
configure: Run AVX test only with 64 bit compiler
2017-02-03 08:15:15 +01:00
Leo Arias
cfd8b4a3f3 Add the packaging metadata to build the tesseract snap 2017-02-03 06:37:39 +00:00
Stefan Weil
b7ef3e0193 configure: Run AVX test only with 64 bit compiler
The current implementation for AVX uses 64 bit code,
so run the AVX test only when the compiler is a 64 bit compiler.

This fixes the broken implementation for 32 bit hosts
which provide AVX but call the stub of DotProductAVX.

Simplify also the conditional code for AVX_OPT and SSE41_OPT.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-02-02 21:59:27 +01:00
Jeff Breidenbach
bd45b3ae4f fix #537: Error in pixClone: pixs not defined 2017-01-29 16:59:52 +01:00
Jeff Breidenbach
fd0683f9e0 remove obsolete OpenCl code from TessBaseAPI::ProcessPagesMultipageTiff; fixes #635 2017-01-29 16:43:10 +01:00
zdenop
5291ae967b Merge pull request #680 from voyageur/disable_graphics
Fix GRAPHICS_DISABLED build, issue #679
2017-01-29 16:29:30 +01:00
zdenop
5de844f54c Merge pull request #687 from jwilk/spelling
Fix typos
2017-01-29 16:27:37 +01:00
Jakub Wilk
bf9f40cac6 Fix typos 2017-01-29 13:12:24 +01:00
Bernard Cafarelli
57b7236f7f
Provide SVSync::StartThread() with GRAPHICS_DISABLED 2017-01-27 12:06:15 +01:00
Bernard Cafarelli
4c39775c2d
Fix Network declarations with GRAPHICS_DISABLED 2017-01-27 12:06:15 +01:00
Bernard Cafarelli
8aeb73e507
Partial fix for GRAPHICS_DISABLED build, issue #679
Include automatically generated configuration file if running autoconf
2017-01-26 11:40:35 +01:00
Ray Smith
f566a45b30 clang-tidy changes from sync 2017-01-25 16:20:19 -08:00
Ray Smith
a1c22fb0d0 Fixed issue #557 2017-01-25 16:05:59 -08:00
Ray Smith
b453f74e01 Fixed issue #633 (multi-language mode 2017-01-25 15:58:39 -08:00