zdenop
3c734e2d11
Merge pull request #2378 from stweil/typecast
...
Modernize code by replacing C type casts
2019-04-07 16:03:01 +02:00
Stefan Weil
f88a7f28e3
fontinfo: Fix wrong delete
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-07 12:16:04 +02:00
Stefan Weil
3dfe1b8807
classify: Modernize function UniformDensity
...
This should fix an issue reported by Codacy.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-07 12:13:45 +02:00
Stefan Weil
72c874140e
Modernize code by replacing C type casts
...
This was done using clang-tidy.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-07 09:04:51 +02:00
zdenop
95a15a7a82
fix cmake&clang build
2019-04-06 15:31:53 +02:00
zdenop
ab09b09da6
Merge pull request #2294 from bertsky/lstm-with-char-whitelist
...
trying to add tessedit_char_whitelist etc. again:
2019-04-06 14:41:30 +02:00
Robert Schubert
f80508bc71
added link to testing/README.md to dev rules
2019-04-06 08:13:03 +02:00
Robert Schubert
25a42ea42f
fixed failure report for tesstrain commands:
...
- with `set -e` in effect, looking at stdout
to detect failure is too late
2019-04-06 08:13:03 +02:00
Robert Schubert
56427b8935
added minimal description to dev rules
2019-04-06 08:13:03 +02:00
Robert Schubert
d5584e793e
fixed failure report for tesstrain commands:
...
- with `set -e` in effect, it does not make sense
to query `$?` indirectly
2019-04-06 08:13:03 +02:00
zdenop
be617b3722
Merge pull request #2361 from Shreeshrii/truth
...
Change message display for debug_level -1 during lstmtraining
2019-04-05 10:52:21 +02:00
zdenop
2982cb4ff3
Merge pull request #2368 from amitdo/no-legacy-fix
...
disable-legacy build: Do not include unused headers
2019-04-05 09:35:04 +02:00
zdenop
8f66616392
Merge pull request #2371 from stweil/modernize
...
Modernize code (clang-tidy check modernize-loop-convert)
2019-04-05 09:34:27 +02:00
Stefan Weil
d35a6f2de5
Modernize code (clang-tidy check modernize-deprecated-headers)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-05 08:29:00 +02:00
Stefan Weil
20d5eedd45
Modernize code (clang-tidy check modernize-loop-convert)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-05 08:29:00 +02:00
amitdo
fab9a54981
Remove unneeded 'SUBDIRS=' from 3 Makefile.am files
2019-04-04 19:31:39 +02:00
Shree
6673347986
Change page to line in message
2019-04-04 15:43:29 +00:00
Shree
51c3535310
Always display GROUND TRUTH. BEST OCR and ALIGNED TRUTH only if different for debug_level -1
2019-04-04 15:33:22 +00:00
Shree
84d4cc2e95
Display OCR TEXT and GROUND TRUTH only when different for debug_level = -1
2019-04-04 15:33:22 +00:00
Amit D
2069c057d6
Merge branch 'master' into no-legacy-fix
2019-04-04 18:26:22 +03:00
Egor Pugin
2a1d238bd5
Merge pull request #2366 from stweil/modernize
...
Modernize code with "using"
2019-04-04 15:13:10 +03:00
amitdo
546014aecd
disable-legacy build: Do not include unused headers
2019-04-04 15:09:08 +03:00
zdenop
801bd66db1
Merge pull request #2364 from Shreeshrii/pages
...
Change pages to lines in message
2019-04-04 08:06:10 +02:00
Stefan Weil
98346c2cd4
Modernize and format code
...
The code was modernized using clang-tidy with "modernize-use-using".
The modified files were then formatted using clang-tidy with
"google-readability-braces-around-statements", then clang-format
was applied.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-03 21:02:23 +02:00
Shreeshrii
613c2bf6e4
Change pages to lines in message
...
The pages variables refer to the lines in document. This change makes the messages clearer without changing the variable names.
2019-04-03 10:41:14 +05:30
Stefan Weil
e76d81a0d5
Include src/training when exporting compile commands with cmake
...
`cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..` is used to get the file
compile_commands.json which is required by clang-tidy.
Export compile commands for all source files, not only those from
the default build, so clang-tidy can cover all source files.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-02 06:34:45 +02:00
Stefan Weil
e262d71a56
Modifiy formatting rules
...
* Allow a single line for empty functions only.
* Don't allow if statements on a single line.
This improves readability and helps when debugging.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-02 06:34:45 +02:00
Egor Pugin
3e7144e796
Update appveyor.yml
2019-04-01 22:59:33 +03:00
Egor Pugin
af7cc1ce4c
Fix windows build.
2019-04-01 22:38:01 +03:00
Stefan Weil
81fbd878dd
Add more missing include statements for Windows build
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-01 08:10:25 +02:00
Stefan Weil
ab009fae94
Remove macro WINDLLNAME
...
It is now no longer used.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 20:05:41 +02:00
Stefan Weil
77a5f2623e
Remove unused config variable tessedit_module_name
...
It was only defined for Windows builds.
Use also false instead of 0 to set the default value of
two boolean config variables.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 20:04:00 +02:00
Stefan Weil
c150b9832d
Add missing include statements for Windows build
...
The last commits which removed BOOL8 had broken the Windows build.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 19:02:29 +02:00
Stefan Weil
802f42e821
Remove BOOL8, TRUE, FALSE from host.h
...
Remove unneeded include statements for host.h, add required ones and
update the comments for the remaining include statements.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 18:27:20 +02:00
Stefan Weil
be96b7b660
bits16: Format code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 18:26:50 +02:00
Stefan Weil
146079f31d
api: Replace BOOL8, TRUE, FALSE by bool, true, false and modernize code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 18:15:53 +02:00
Stefan Weil
4e0c726d6c
ccutil: replace TRUE, FALSE by true, false
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:56:47 +02:00
Stefan Weil
da0c14ae45
cutil: Replace TRUE, FALSE by true, false
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:56:19 +02:00
Stefan Weil
87a973652c
classify: Replace BOOL8, TRUE, FALSE by bool, true, false
...
Simplify also some related code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:55:48 +02:00
Stefan Weil
30ee3afc29
textord: Replace TRUE, FALSE by true, false and use bool instead of BOOL8
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:55:20 +02:00
Stefan Weil
bb52887c36
unittest: Replace TRUE, FALSE by true, false
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:54:48 +02:00
Stefan Weil
b391ab84d0
wordrec: Replace TRUE, FALSE by true, false
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:54:21 +02:00
Stefan Weil
cbb5e729a1
classify: Use bool and replace TRUE, FALSE
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:53:50 +02:00
Stefan Weil
46fa59aadc
ccstruct: Replace BOOL8, TRUE, FALSE by bool, true, false and modernize code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:53:06 +02:00
Stefan Weil
92b9f9f8de
ccmain: Replace TRUE, FALSE by true, false
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:52:09 +02:00
zdenop
21547d42ef
Merge pull request #2362 from stweil/unused
...
Remove unused config variable tessedit_single_match
2019-03-31 17:47:01 +02:00
Stefan Weil
7db25e15c0
Remove unused config variable tessedit_single_match
...
Replace also TRUE, FALSE by true, false.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:38:35 +02:00
Stefan Weil
ca2947a2c0
blobclass: Remove unused macros
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:36:46 +02:00
Stefan Weil
f2bd98e656
PageIterator: Remove useless const
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:35:43 +02:00
Stefan Weil
813b7803e0
pgedit: Replace BOOL8 by bool
...
Replace also TRUE, FALSE by true, false and add some static attributes.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-31 17:29:15 +02:00