Stefan Weil
25e0c1accb
PangoFontInfo: Remove unused method is_fraktur
...
That allows removing a dirty hack which used the
non-portable function strcasestr.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-06-03 10:08:21 +02:00
Stefan Weil
0c88b72909
training: Fix format error and some compiler warnings
...
The size() method returns a size_type value which is an unsigned type.
As there is no portable format string for that type, a type cast is needed.
Fix also several signed / unsigned mismatches which resulted in compiler
warnings.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-05-11 19:32:51 +02:00
Ray Smith
500bfaf315
Added std:: to some stl types
2017-04-27 17:15:35 -07:00
Ray Smith
f566a45b30
clang-tidy changes from sync
2017-01-25 16:20:19 -08:00
amitdo
5d627aacae
Remove code that is no longer needed
...
The code in ccutil/hashfn.h was needed for some old compilers. Now that we support MSVC >= 2010 and compilers that has good support for C++11, we can drop this code.
As a result of this file removal, we now use:
std::unordered_map
std::unordered_set
std::unique_ptr
directly in the codebase with '#include' for the needed headers.
2017-01-16 01:49:17 +02:00
Stefan Weil
cb6e9e0071
training: Replace NULL by nullptr
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-12-14 21:08:36 +01:00
Ray Smith
f24ef67df4
Limited max height to 48 even in variable height input, enabled neural nets via ocr engine mode
2016-11-08 14:01:04 -08:00
Ray Smith
5d21ecfad3
Rendering/hash map changes part 2
2016-11-07 11:56:07 -08:00
Ray Smith
a987e6d87c
Major bug fixes to pango renderer and resolved issue of hash_map vs unordered_map
2016-11-07 11:35:45 -08:00
Ray Smith
2c837dffc3
Result of clang tidy on recent merge
2016-11-07 10:46:33 -08:00
Zdenko Podobný
61032d9b14
set fonts_dir to system default font location. Fixes #409
2016-09-01 18:27:00 +02:00
jm
8d2d94e4ed
fixes some of the windows issue with text2image, see #380
2016-08-05 20:11:01 +02:00
Stefan Weil
ed053aab94
Fix Cygwin compatibility – part III
...
Commit 65504c8cd2
misplaced the #endif.
The definition of _GNU_SOURCE is only needed for Cygwin.
Defining _GNU_SOURCE on Linux results in compiler warnings because this
macro is already defined by the compiler.
Fix this by moving the #endif to the right place. In addition the code
for Cygwin is made more robust: If a future Cygwin compiler defines
_GNU_SOURCE, too, the code will still work.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-06-19 22:38:03 +02:00
Stefan Weil
65504c8cd2
Fix Cygwin compatibility - Part II
2016-06-19 11:59:58 +03:00
Amit Dovev
96c2f637fd
Add missing % char from format specifier in tlog()
...
- In training/ango_font_info.cpp
2016-03-17 01:09:46 +02:00
Stefan Weil
29f36d9264
training: Fix typos in comments and strings
...
All of them were found by codespell.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-04 21:58:42 +01:00
Jim Regan
c09ed71740
strcasestr needed on Cygwin too
...
See: https://groups.google.com/d/msgid/tesseract-ocr/55B12C3C.3010908%40vol.at
```
pango_font_info.cpp:223:46: error: 'strcasestr' was not declared in this scope
is_fraktur_ = (strcasestr(family, "Fraktur") != NULL);
```
2015-07-23 22:20:10 +01:00
Ray Smith
941d87057e
Fixed training build
2015-05-13 17:46:58 -07:00
Ray Smith
6be25156f7
Major updates to training system as a result of extensive testing on 100 languages
2015-05-12 18:04:31 -07:00
theraysmith@gmail.com
6fcede5c48
Fixed some leaks
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1143 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-08-11 23:19:24 +00:00
theraysmith@gmail.com
97080412fd
Bunch of minor bug fixes/cleanups
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1106 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-05-21 15:48:48 +00:00
theraysmith@gmail.com
cda8e748b1
Fixed some formatting issues
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1083 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-25 01:25:42 +00:00
theraysmith@gmail.com
61d45d2f34
Fixed issue 1133
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1080 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-24 21:18:00 +00:00
theraysmith@gmail.com
cc47429587
Ugraded pango version
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1062 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-23 22:54:25 +00:00
theraysmith@gmail.com
6a10aa7985
More cleanup changes from patches
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1024 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-29 02:22:14 +00:00
zdenop@gmail.com
ac5a8a871b
fix windows builds (mingw and VS2010)
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1017 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-26 22:39:20 +00:00
theraysmith@gmail.com
f244ab3fc6
New training tool text2image
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@965 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-09 18:04:20 +00:00