Commit Graph

1510 Commits

Author SHA1 Message Date
Stefan Weil
318b88daa6 ccmain: Fix typos in comments and strings
Most of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-14 21:59:16 +02:00
Stefan Weil
11b2a4d9af api: Fix typos in comments (all found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-14 21:54:27 +02:00
Stefan Weil
48171dea5f COPYING: Fix typo found by codespell
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-14 21:52:54 +02:00
Nick White
b389e2782c Set default exposure settings for grc training 2015-09-11 13:30:05 +01:00
Nick White
ac6050def0 Remove NUMBER_DAWG_FACTOR and WORD_DAWG_FACTOR from grc rules
These aren't used anywhere, and are difficult to calculate for grc,
so leave them as the default.
2015-09-11 09:29:55 +01:00
zdenop
b216f6f66b Merge pull request #92 from nickjwhite/bettertesstrain
Improve tesstrain.sh script
2015-09-10 19:00:26 +02:00
Nick White
714d2cc4ae Use different font list for grc training
This font list contains a selection fonts produced by the Greek Font
Society <http://greekfontsociety.gr>, and is the result of testing
with a large corpus of a variety of scanned works.
2015-09-10 15:34:44 +01:00
Nick White
de789ac8ea 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.
2015-09-10 15:05:07 +01:00
Nick White
c0133ecfa6 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.
2015-09-10 14:57:17 +01:00
zdenop
da703a0a78 Merge pull request #91 from tfmorris/scrollview-convenience
Simplify build and run of ScrollView
2015-09-10 08:36:08 +02:00
zdenop
f25d63ea91 Merge pull request #90 from tfmorris/32bitlong-overflow
Add ULL to constants which overflow 32 bits
2015-09-10 08:35:38 +02:00
Tom Morris
b10fe909bc Merge branch 'scrollview-convenience' of github.com:tfmorris/tesseract into scrollview-convenience 2015-09-09 17:24:30 -04:00
Tom Morris
4d92667e89 Simplify build and run of ScrollView 2015-09-09 17:21:58 -04:00
Tom Morris
a1e14ea93c Add ULL to constants which overflow 32 bits 2015-09-09 16:51:45 -04:00
Egor Pugin
25136e40ea Restore ICU_INCLUDE_DIRS for OS X. 2015-09-07 13:02:22 +03:00
Egor Pugin
5e7ffe9e56 Remove unused option. 2015-09-07 12:57:02 +03:00
Egor Pugin
252080dbca Do static build with some tools on appveyor. 2015-09-07 12:50:20 +03:00
Egor Pugin
670e0fafb3 Hide pango and cairo includes from targets that do not use it. 2015-09-07 12:49:08 +03:00
Egor Pugin
da3852dc77 Fix cygwin build. 2015-09-07 02:49:18 +03:00
Egor Pugin
c0d8a07b9d Fix a lot of training tool to work on windows with static build. 2015-09-07 01:46:33 +03:00
egorpugin
b1d0cb9692 Update appveyor.yml 2015-09-07 00:40:24 +03:00
Egor Pugin
b375728012 Add BUILD_TRAINING CMake option. 2015-09-06 23:59:54 +03:00
egorpugin
bf36e5200a Update appveyor.yml 2015-09-06 23:35:30 +03:00
egorpugin
9c55472210 Update README.md 2015-09-06 22:59:23 +03:00
Egor Pugin
083639fff9 Add appveyor.yml. 2015-09-06 22:30:11 +03:00
egorpugin
25225117b6 Update .travis.yml 2015-09-06 22:12:45 +03:00
egorpugin
57947cd053 Update .travis.yml 2015-09-06 22:05:54 +03:00
egorpugin
a65f2da409 Update .travis.yml 2015-09-06 21:58:49 +03:00
egorpugin
c3198df368 Update .travis.yml 2015-09-06 21:52:42 +03:00
egorpugin
8d8636a1fc Update CMakeLists.txt 2015-09-06 21:42:47 +03:00
egorpugin
e5fad6432e Update .travis.yml 2015-09-06 21:36:47 +03:00
egorpugin
df2309727d Update .travis.yml 2015-09-06 21:21:53 +03:00
egorpugin
d7059e13fd Update .travis.yml 2015-09-06 21:15:04 +03:00
egorpugin
f9f85b88d0 Update CMakeLists.txt 2015-09-06 21:05:05 +03:00
egorpugin
e67372c849 Update .travis.yml 2015-09-06 20:59:04 +03:00
egorpugin
707888a582 Update README.md 2015-09-06 20:55:05 +03:00
Egor Pugin
0f651c187b Add .travis.yml. 2015-09-06 20:54:05 +03:00
Egor Pugin
03531ba8a5 Fix linux build. 2015-09-06 20:43:28 +03:00
Egor Pugin
5e3b8d33e3 Add source groups. 2015-09-06 13:47:30 +03:00
Egor Pugin
56a5195293 Initial CMake implementation. 2015-09-06 00:47:32 +03:00
Clemens Eisserer
0fd413405f Initialize output parameters of word_char_quality() to zero before early exit 2015-09-02 17:05:14 +02:00
Zdenko Podobný
73b28982aa Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
* 'master' of https://github.com/tesseract-ocr/tesseract:
2015-09-01 17:44:25 +02:00
Zdenko Podobný
c4d52c77be Merge pull request #87 from jbarlow83/master
Get --enable-opencl to compile (but not work)
2015-09-01 17:43:38 +02:00
zdenop
48764964db Merge pull request #87 from jbarlow83/master
Get --enable-opencl to compile (but not work)
2015-08-30 21:41:33 +02:00
Nick White
8e71c79dc2 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.
2015-08-26 18:49:14 +01:00
Nick White
e110b14465 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.
2015-08-26 18:32:44 +01:00
Nick White
422c424995 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.
2015-08-26 18:24:14 +01:00
Nick White
8d0f59d09d 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.
2015-08-26 18:14:30 +01:00
James R. Barlow
73b0297e5e Fix configure.ac unconditionally enabling OpenCL 2015-08-26 02:17:10 -07:00
James R. Barlow
18ac7ae7ef Get OpenCL to compile on OS X
However, the output of the OpenCL build is garbage....
2015-08-26 02:03:07 -07:00