Commit Graph

1079 Commits

Author SHA1 Message Date
Stefan Weil
02a071c593 opencl: Fix typos in comments and strings
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 11:12:02 +01:00
Stefan Weil
32d179e0a6 Fix more typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 11:11:54 +01:00
Zdenko Podobný
1890ba5f2a autotools: fail if g++ or clang++ compiler is not found; Fixes #130 (commit 34f34ead) 2016-02-05 11:11:39 +01:00
Stefan Weil
7e9a7827c1 viewer: Fix format string
Variable port is an int, so "%d" is needed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 11:03:10 +01:00
Stefan Weil
3de9dd91f5 cube: Use local variable which was reported as unused
The local variable first_lower was assigned a value which was not used.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 11:03:02 +01:00
Stefan Weil
7a14c0114f ccmain: Remove unused local variables
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 11:02:53 +01:00
Zdenko Podobný
90b5947b5f Detect presence of 'off_t' by configure test (partial cherry-pick from 87c21aaa5c) 2016-02-05 11:02:15 +01:00
Felix Janda
24fe797734 viewer/svutils.cpp: Include <sys/select.h> for FD_SET, ... 2016-02-05 10:58:40 +01:00
amitdo
0bb5a7d6f0 Added osd renderer for psm 0.
Works for single page and multi-page.
2016-02-05 10:58:29 +01:00
ws233
bceb532a2f Type mismatch on a 64bit platforms has been fixed. 2016-02-05 10:58:11 +01:00
amitdo
79ed9a30c7 OSD: Print script name instead of meaningless script id 2016-02-05 10:57:45 +01:00
John Slade
0fdfa98c0f training/unicharset_extractor.cpp: Print whether WCTYPE is included
Character properties are autogenerated only if wctype is found on the
system.  However, it is not possible to know if a version of
unicharset_extractor was compiled with this support (especially if it
was installed as a pre-compiled binary).

This commit adds a print to the usage details to output if the binary
was compiled with wctype support.
2016-02-05 10:56:26 +01:00
John Slade
85c404e582 configure.ac: Detect wchar_t using wchar.h header
The wchar_t type is defined in `wchar.h` and if this header is not
included by autoconf the detection of the type will fail.  This type is
required by `unicharset_extractor` to autogenerate the character
properties.

This problem was detected when running under Fedora 21.
2016-02-05 10:56:18 +01:00
Pepe Bawagan
a153a51f39 adds sudo to "make install" command
for consistency with instructions that show up while installing
2016-02-05 10:55:52 +01:00
Stefan Weil
67c7d4a2cb wordrec: Fix typos in comments
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:55:32 +01:00
Stefan Weil
bb2e239989 Java: Fix typos in comments and strings
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:55:19 +01:00
Stefan Weil
4a85f4b6bd Doxyfile: Fix typo in comment (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:55:11 +01:00
Stefan Weil
e9cf8cf95e dict: Fix typos in comments and strings
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:55:03 +01:00
Stefan Weil
72ee298e4d cutil: Fix typos in comments
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:54:51 +01:00
Stefan Weil
a190f340cb cube: Fix typos in comments
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:54:41 +01:00
Stefan Weil
2e73c9d5ea classify: Fix typos in comments and strings
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:54:26 +01:00
Stefan Weil
3a385569fe ccutil: Fix typos in comments and strings
Most of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:54:19 +01:00
Stefan Weil
fbc07c0f1b ccstruct: Fix typos in comments and strings
Most of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:54:10 +01:00
Zdenko Podobný
d7a96db827 fix typo 2016-02-05 10:53:14 +01:00
Stefan Weil
bd3cd8f447 ccmain: Fix typos in comments and strings
Most of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:52:16 +01:00
Stefan Weil
f72e65b36e api: Fix typos in comments (all found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:52:06 +01:00
Stefan Weil
8f465ca01e COPYING: Fix typo found by codespell
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-05 10:51:56 +01:00
Nick White
d31ffc292f Use mktemp to create workspace directory
mktemp is a better idea for security, as well as enabling users to
specify a different directory using the TMPDIR environment variable,
which is useful if /tmp is a small tmpfs.

Also fix a bug where the first few log messages were failing as the
workspace directory wasn't been created early enough.
2016-02-05 10:51:43 +01:00
Nick White
143ef735a4 Add --exposures option to tesstrain.sh
This flag can be used to specify multiple different exposure levels
for a training. There was some code already in tesstrain_utils.sh
to deal with multiple exposure levels, so it looks like this
functionality was always intended.

The default usage does not change, with exposure level 0 being the
only one used if --exposures is not used.
2016-02-05 10:51:34 +01:00
Nick White
45590ba1c1 Remove --bin_dir option from tesstrain.sh (should use $PATH instead)
The --bin_dir option to tesstrain.sh is not useful, as $PATH does the
same job much better, so switch to relying on that instead.

This also makes the code a bit more readable, as it removes the need
to refer to binaries as COMMAND_NAME_EXE rather than just command_name.
2016-02-05 10:51:23 +01:00
Nick White
b581c33789 tesstrain.sh: Initialise fontconfig even if Arial isn't available
The fontconfig initialisation hardcodes using Arial. However it may
not be available, whereas the fonts being used later will be, so use
one of them for initialisation instead.
2016-02-05 10:51:14 +01:00
Nick White
83f757985f tesstrain.sh: Only set FONTS if they weren't set on the command line
Previously the fonts specified in language-selection.sh would override
any specified on the command line.

This changes language-specific.sh from overriding a user request to
just setting the default fonts if none are specified with --fontlist.
2016-02-05 10:51:04 +01:00
Nick White
caab05b0bb tesstrain.sh: Only fall back to default Latin fonts if none were provided
The --fontlist argument to tesstrain.sh was always ignored, even if
the language had no specific fonts specified in language-specific.sh.

Change this behaviour so the --fontlist argument is used if no specifc
fonts are selected by language-specific.sh.
2016-02-05 10:50:54 +01:00
Tom Morris
1b4f83a1c9 Simplify build and run of ScrollView 2016-02-05 10:50:05 +01:00
Tom Morris
109c309356 Add ULL to constants which overflow 32 bits 2016-02-05 10:49:50 +01:00
James R. Barlow
b3eaf6d748 Fix configure.ac unconditionally enabling OpenCL 2016-02-05 10:47:27 +01:00
James R. Barlow
7b85eeafe2 Get OpenCL to compile on OS X
However, the output of the OpenCL build is garbage....
2016-02-05 10:47:15 +01:00
James R. Barlow
8d5abff34a Fix various clang compilation errors
Also fixed a writable strings warning/error.
warning: ISO C++11 does not allow conversion from
      string literal to 'char *' [-Wwritable-strings]

Several were of this form and fixed as the compiler suggested:
openclwrapper.cpp:2411:33: error: non-constant-expression cannot be narrowed
      from type 'int' to 'size_t' (aka 'unsigned long') in initializer list
      [-Wc++11-narrowing]
    size_t local_work_size[] = {block_size};
                                ^~~~~~~~~~
openclwrapper.cpp:2411:33: note: insert an explicit cast to silence this issue
    size_t local_work_size[] = {block_size};
                                ^~~~~~~~~~
                                static_cast<size_t>( )

Should have low impact on other platforms/compilers. The change makes
the code more correct.
2016-02-05 10:47:04 +01:00
James R. Barlow
8f6ebc95c0 Fix missing "allheaders.h" when compiling with --enable-opencl on OS X 2016-02-05 10:46:56 +01:00
James R. Barlow
98292ae435 Fix configure.ac for OS X and -framework 2016-02-05 10:46:41 +01:00
Zdenko Podobný
2df0ee56ab fix OpenCL build on Mac 2016-02-05 10:46:29 +01:00
Zdenko Podobný
d9aafcfcc5 fix VS2010 build 2016-02-05 10:46:19 +01:00
gargrahul
8e9159b091 Fixes for OpenCL issues reported on Apple Mac. Still get -54 on Apple Mac while running on OpenCL CPU, however it is ignored now. 2016-02-05 10:45:07 +01:00
Renard Wellnitz
2c8bc4a2ac fix to compile tesseract on mac with clang 2016-02-05 10:44:40 +01:00
Zdenko Podobný
07128d8432 remove info about VS 2008 2016-02-05 10:44:28 +01:00
Zdenko Podobný
387ae36cd0 rename README to README.md - fixes #45 2016-02-05 10:44:16 +01:00
Zdenko Podobný
b4b2aaee80 turn off optimisation in Microsoft Visual Studio for TextlineProjection::TruncateToImageBounds#pragma optimize( "", on )
fix issue 1496
2016-02-05 10:43:35 +01:00
Zdenko Podobný
f7fd63efea Fixes #76 - enable OpenMP support 2016-02-05 10:43:21 +01:00
Jaka Konda
9cc0914f06 Fixed VC14 compiler issue.
In VC14 snprintf function is provided in standard library there triggering error. "snprintf Do not define snprintf as a macro. Macro definition of snprintf conflicts with Standard Library function declaration"

Signed-off-by: Jaka Konda <jaka.konda@outlook.com>
2016-02-05 10:43:02 +01:00
Robert Theis
76a28640c6 Remove extraneous line feed 2016-02-05 10:42:41 +01:00