Stefan Weil
8c56b8f58c
Move content of ipoints.h to points.h and remove ipoints.h
...
Both include files depended on each other, so it did not make sense
to separate them.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-02 11:21:27 +02:00
zdenop
57a6f1d22e
remove duplicate help from combine_lang_model
2018-10-01 21:22:51 +02:00
Egor Pugin
6ee7f4eac2
Fix typo.
2018-09-29 17:04:25 +03:00
zdenop
14b83d3090
use tprintf instead of printf to be able disable messages by quiet option
...
(issue #1240 )
2018-09-29 13:49:08 +02:00
zdenop
d9372662ec
add "sudo ldconfig" to install instruction. fixes #1212
2018-09-29 13:33:36 +02:00
zdenop
d5b6222856
Merge pull request #1935 from stweil/style
...
Format code and fix some style issues
2018-09-29 09:32:56 +02:00
Stefan Weil
4ec9c86226
unittest: Replace NULL by nullptr
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-29 09:27:12 +02:00
Stefan Weil
9e66fb918f
unittest: Format code
...
It was formatted with clang-format-7 -i unittest/*.{c*,h}.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-29 09:19:13 +02:00
zdenop
1a096441d0
tesseract app: check if input file exists; fixes #1023
2018-09-29 08:51:00 +02:00
Stefan Weil
0f3206d5fe
Format code (replace ( xxx ) by (xxx))
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-29 08:21:25 +02:00
Stefan Weil
63f87cac90
Simplify boolean expressions
...
Remove "? true : false" which is not needed for boolean expressions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-29 08:21:14 +02:00
Zdenko Podobný
bf6d929e4c
fix using c-api / compile with gcc
2018-09-28 23:14:32 +02:00
zdenop
abe40f17c9
Win32: use the ISO C and C++ conformant name "_putenv" instead of deprecated "putenv"
2018-09-28 20:53:57 +02:00
zdenop
a0564fd4ec
Allow user to specify dpi for input image
2018-09-28 20:28:52 +02:00
zdenop
345e5ee1f3
prefer to use FreeType for pango_cairo_font_map
2018-09-28 11:07:26 +02:00
zdenop
5fe1390748
remove alpha channel from png: issue #1914
2018-09-27 19:40:15 +02:00
zdenop
971fe50031
fixed #714 : use binary mode when generating pdf to stdout on Windows
2018-09-27 18:35:15 +02:00
Zdenko Podobný
5dfce7471c
fix #1889 : part 2
2018-09-26 09:28:22 +02:00
zdenop
e1245f5c54
Merge pull request #1929 from DevelopAlex/patch-1
...
Minor: Only print "Merging rows..." in debug mode
2018-09-24 14:12:17 +02:00
DevelopAlex
f69af96dbe
Only print "Merging rows..." in debug mode
...
Only print "Merging rows..." if textord_debug_blob==true (like all the other debug messages).
Otherwise, there are a lot of "Merging rows..." messages in console output.
2018-09-24 11:43:47 +02:00
Zdenko Podobný
ea007d5b33
fix version info for cmake build
2018-09-23 20:00:28 +02:00
Zdenko Podobný
c003a60410
remove outdated scripts/contrib dir
2018-09-22 23:29:34 +02:00
Zdenko Podobný
01cf7402df
add header guard
2018-09-22 18:44:26 +02:00
zdenop
02f9d8d95e
Merge pull request #1923 from stweil/errhandling
...
Don't trigger a deliberate SIGSEGV for fatal errors in release code
2018-09-20 21:58:45 +02:00
zdenop
63674d3285
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
2018-09-20 21:58:24 +02:00
Stefan Weil
5338a5a8d5
Don't trigger a deliberate SIGSEGV for fatal errors in release code
...
The error message "segmentation fault" confuses most users,
so enforce a segmentation fault only in debug code.
Release code simply calls the abort function.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-20 21:50:13 +02:00
zdenop
4ca179d3fa
remove condition because fontsize is always > 0
2018-09-20 21:48:44 +02:00
zdenop
cefb62b644
Merge pull request #1920 from stweil/errhandling
...
Don't call exit when parameter in file is unknown
2018-09-20 10:37:38 +02:00
zdenop
5f45f73de5
Merge pull request #1919 from stweil/clean
...
Remove duplicate include statements
2018-09-20 10:36:20 +02:00
Stefan Weil
741ea00d70
Don't call exit when parameter in file is unknown
...
Wrong or old parameters in traineddata files should not terminate
the program, so make that a warning instead of a fatal error.
This fixes issue #1520 .
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-20 08:37:33 +02:00
Stefan Weil
d586b97854
Remove duplicate include statements
...
One of them was reported in issue #1843 .
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-19 22:33:29 +02:00
Egor Pugin
a2612f2830
Merge pull request #1918 from stweil/doc
...
Add documentation for lists of images to the tesseract man page
2018-09-19 13:44:54 +03:00
Egor Pugin
3038d66c7f
Merge pull request #1917 from cyanfish/master
...
Fix typo in cppan.yml affecting /openmp
2018-09-19 13:44:37 +03:00
Stefan Weil
a387e1f71e
Add documentation for lists of images to the tesseract man page
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-19 09:32:02 +02:00
Ben Olden-Cooligan
d6d6f3d08e
Fix typo in cppan.yml affecting /openmp
2018-09-19 02:55:23 -04:00
Zdenko Podobný
5d22fdfeed
replace deprecated C++ headers (reported by clan-tidy) - partially supersedes PR #1605
2018-09-18 18:51:11 +02:00
zdenop
62a5e8cfc3
Merge pull request #1265 from picturae/jpg_quality_option
...
Added JPEG quality option parameter (-c jpg_quality=n)
2018-09-18 11:37:37 +02:00
Jeff Breidenbach
c98391d3d7
fix #1192 bbox as the entire page
2018-09-18 08:09:11 +02:00
David Thornley
92e291250a
Fix missing default parameter value cause compile to fail.
2018-09-14 09:56:06 +02:00
David Thornley
31aeb534d9
Fix merge conflicts
...
Merge branch 'master' into jpg_quality_option
* master: (577 commits)
fix issue #1889
Add badges for download , licence and lgtm
Replace macro MINGW by __MINGW32__
EquationDetectBase: Define virtual destructor in .cpp file
BlobGrid: Define virtual destructor in .cpp file
GridBase: Define virtual destructor in .cpp file
AlignedBlob: Define virtual destructor in .cpp file
TransposedArray: Define virtual destructor in .cpp file
IndexMapBiDi: Define virtual destructor in .cpp file
Add missing include file (fixes linker error for Visual Studio)
NthItemTest: Add definition for virtual destructor
HeapTest: Add definition for virtual destructor
IcuErrorCode: Define virtual destructor in .cpp file
Validator: Define virtual destructor in .cpp file
Dawg: Define virtual destructor in .cpp file
CUtil: Define virtual destructor in .cpp file
IndexMap: Define virtual destructor in .cpp file
CCUtil: Define virtual destructor in .cpp file
MATRIX: Define virtual destructor in .cpp file
CCStruct: Define virtual destructor in .cpp file
...
2018-09-13 16:03:24 +02:00
Zdenko Podobný
59e42fcef6
fix issue #1889
2018-09-13 07:26:37 +02:00
zdenop
aa47a8440a
Add badges for download , licence and lgtm
2018-09-12 09:25:01 +02:00
zdenop
209372f8e1
Merge pull request #1896 from Shreeshrii/newjava
...
add langtests for Devanagari and Sanskrit
2018-09-04 18:22:04 +02:00
zdenop
f8d5a00f37
Merge pull request #1897 from stweil/clean
...
Fix some compiler warnings from clang
2018-09-04 18:20:21 +02:00
Stefan Weil
be1393b1e8
Replace macro MINGW by __MINGW32__
...
MINGW is no longer used and now removed from configure.ac.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-04 16:05:27 +02:00
Stefan Weil
4fa2a34577
EquationDetectBase: Define virtual destructor in .cpp file
...
This fixes compiler warnings from clang:
src/textord/equationdetectbase.h:32:7: warning:
'EquationDetectBase' has no out-of-line virtual method definitions;
its vtable will be emitted in every translation unit [-Wweak-vtables]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-04 13:14:29 +02:00
Stefan Weil
f29a949649
BlobGrid: Define virtual destructor in .cpp file
...
This fixes compiler warnings from clang:
src/textord/blobgrid.h:33:7: warning:
'BlobGrid' has no out-of-line virtual method definitions;
its vtable will be emitted in every translation unit [-Wweak-vtables]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-04 13:12:29 +02:00
Stefan Weil
b3206d94b5
GridBase: Define virtual destructor in .cpp file
...
This fixes compiler warnings from clang:
src/textord/bbgrid.h:53:7: warning:
'GridBase' has no out-of-line virtual method definitions;
its vtable will be emitted in every translation unit [-Wweak-vtables]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-04 13:11:35 +02:00
Stefan Weil
677198e399
AlignedBlob: Define virtual destructor in .cpp file
...
This fixes compiler warnings from clang:
src/textord/alignedblob.h:81:7: warning:
'AlignedBlob' has no out-of-line virtual method definitions;
its vtable will be emitted in every translation unit [-Wweak-vtables]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-04 13:10:44 +02:00
Stefan Weil
c9d8e5e8bf
TransposedArray: Define virtual destructor in .cpp file
...
This fixes compiler warnings from clang:
src/lstm/weightmatrix.h:33:7: warning:
'TransposedArray' has no out-of-line virtual method definitions;
its vtable will be emitted in every translation unit [-Wweak-vtables]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-04 13:09:49 +02:00