Egor Pugin
15f64e0232
Remove recursive header.
2018-06-23 17:32:42 +03:00
Egor Pugin
da4ad15fe1
Merge pull request #1698 from stweil/includes
...
Remove unneeded include statements for scanutils.h
2018-06-23 00:07:58 +03:00
Stefan Weil
484a1be98a
Remove unneeded include statements for scanutils.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-22 19:16:08 +02:00
Egor Pugin
640c225840
Merge pull request #1697 from stweil/api
...
Remove more header files from public API
2018-06-21 23:23:36 +03:00
Stefan Weil
11f2b12fda
Remove arch header files from public API
...
The arch header files are only used in the Tesseract code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-21 21:46:48 +02:00
Stefan Weil
2bafff4c64
Remove LSTM header files from public API
...
The LSTM header files are only used in the Tesseract code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-21 21:46:48 +02:00
zdenop
a20473da43
Merge pull request #1696 from stweil/includes
...
Replace string.h by standard C++ cstring
2018-06-21 21:26:28 +02:00
Stefan Weil
1371980f9f
Replace string.h by standard C++ cstring
...
Remove the unneeded include statement in platform.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-21 20:40:26 +02:00
zdenop
57918c1072
Merge pull request #1694 from stweil/assert
...
Clean usage of assert.h
2018-06-21 20:06:20 +02:00
Stefan Weil
112aeb9826
Clean usage of assert.h
...
Remove unneeded include statements, remove conditional statements and
replace the remaining assert.h by their standard C++ variant cassert.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-21 19:31:05 +02:00
zdenop
629a10b504
Merge pull request #1691 from stweil/api
...
Remove public API file ndminx.h
2018-06-21 08:43:33 +02:00
Stefan Weil
a9e2574eff
Remove public API file ndminx.h
...
It is not needed for the Tesseract code, and the Tesseract API
should not provide MIN / MAX macros.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-21 08:33:30 +02:00
zdenop
eaae28fc2f
Merge pull request #1690 from stweil/assert
...
Replace ASSERT_HOST in genericvector.h
2018-06-21 08:04:31 +02:00
Stefan Weil
0cb128d56b
Remove errcode.h from public API
...
It is no longer needed by genericvector.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-21 06:20:26 +02:00
Stefan Weil
44450094c3
Replace ASSERT_HOST in genericvector.h
...
genericvector.h used a mix of assert and ASSERT_HOST.
By using assert only, it does no longer depend on errcode.h
which defines the ASSERT_HOST macro.
Other files which still use ASSERT_HOST now need an explicit
include statement for errcode.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 22:32:17 +02:00
zdenop
2bb4c4ed44
Merge pull request #1688 from stweil/cov
...
Check return values from fopen (fixes several Coverity Scan reports)
2018-06-20 21:59:10 +02:00
Stefan Weil
2a5a092469
Fix CID 1393241 (Dereference null return value)
...
Add also some error handling if fopen fails.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 21:17:02 +02:00
Stefan Weil
09976e6125
Fix CID 1393238 (Dereference null return value)
...
Add also some error handling if fopen fails.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 21:17:02 +02:00
Stefan Weil
27a5908a55
Fix CID 1393239 (Dereference null return value)
...
Add also some error handling if fopen fails.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 21:17:02 +02:00
zdenop
b344dc14ad
Merge pull request #1687 from stweil/cov
...
Fix 5 issues reported by Coverity Scan
2018-06-20 20:29:47 +02:00
Stefan Weil
f482ebdca1
Fix CID 1393243 (Uninitialized scalar field)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 20:06:28 +02:00
Stefan Weil
2ceb200186
Fix CID 1393244 and CID 1393244 (Uninitialized scalar variable)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 19:28:04 +02:00
Stefan Weil
d6391ee811
Fix CID 1393540 (Explicit null dereferenced)
...
Coverity Scan does not like incrementing of a null pointer,
so increment an index value instead of a pointer.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 17:32:02 +02:00
Stefan Weil
c8dd4456e0
Fix CID 1393240 (Missing return statement)
...
This also fixes a compiler warning:
unittest/progress_test.cc:59:9: warning:
no return statement in function returning non-void [-Wreturn-type]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 17:14:53 +02:00
zdenop
cb6b1c118f
Merge pull request #1686 from stweil/api
...
Remove more header files from public API
2018-06-20 12:21:25 +02:00
Stefan Weil
e87e8967d7
Remove more header files from public API
...
Install only those headers which are needed by third party applications.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-20 11:54:38 +02:00
Egor Pugin
29f280e470
Merge pull request #1681 from Shreeshrii/master
...
minor changes to unittests
2018-06-19 12:38:04 +03:00
Shreeshrii
0e9929f2ab
Update osd_test.cc
2018-06-19 10:23:48 +05:30
Shreeshrii
39ead95f51
Update loadlang_test.cc
2018-06-19 10:23:21 +05:30
Shreeshrii
873586ec9b
Update apiexample_test.cc
2018-06-19 10:22:46 +05:30
Shree Devi Kumar
cb01acef9b
add new unitest files to gitignore
2018-06-18 19:06:17 +00:00
Shree Devi Kumar
90b29d9d53
Add tesseract/ to API header file invocation
2018-06-18 18:53:01 +00:00
Egor Pugin
b1f7990d9b
Merge pull request #1678 from stweil/api
...
Require tesseract/ for API header files (fixes potential name conflicts)
2018-06-18 13:22:43 +03:00
Stefan Weil
c1c87d73ee
Require tesseract/ for API header files (fixes potential name conflicts)
...
The tesseract/ subdirectory is no longer automatically added to the
include path of the compiler. Therefore old code which used code like
#include "capi.h"
must now change that to
#include "tesseract/capi.h"
This avoids name conflicts with header files from other projects.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-17 22:01:19 +02:00
Egor Pugin
518192dbf4
Merge pull request #1677 from Shreeshrii/loadlang
...
Test load of all langs and scripts for all 3 tessdata repos
2018-06-17 13:55:37 +03:00
Shree Devi Kumar
16e45d21a0
Test load of all langs and scripts for all 3 tessdata repos
2018-06-17 05:31:32 +00:00
Egor Pugin
87635c1ecb
Merge pull request #1669 from amitdo/amitdo-fix-1665
...
WordFontAttributes: Check that word != nullptr earlier. Fix #1665
2018-06-14 00:12:15 +03:00
Amit D
6f85de22bc
WordFontAttributes: Check that word != nullptr earlier. Fix #1665
2018-06-13 23:38:27 +03:00
Egor Pugin
8b64602a86
Merge pull request #1660 from Shreeshrii/master
...
Change default width for images output by text2image
2018-06-11 14:23:22 +03:00
Shreeshrii
a27e91c4f9
Update tesstrain_utils.sh
2018-06-11 09:35:14 +05:30
Shreeshrii
fdc243b363
Change default width for images output by text2image
...
Fixes
Image too large to learn!! Size = 2594x48
Image not trainable
See https://github.com/tesseract-ocr/tesseract/issues/590#issuecomment-271244655
for related discussion
2018-06-11 09:34:07 +05:30
zdenop
680b172a0c
Merge pull request #1659 from stweil/api
...
Remove some header files from public API
2018-06-10 16:27:47 +02:00
Stefan Weil
fcdcba70f4
Remove some header files from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-10 16:19:58 +02:00
Egor Pugin
e5d11b5297
Merge pull request #1658 from Shreeshrii/master
...
correct script for eng, remove new reports from distribution
2018-06-10 14:15:51 +03:00
Shree Devi Kumar
053698bb8b
update .gitignore
2018-06-10 04:16:23 +00:00
Shree Devi Kumar
4753d8cbb6
correct script for eng, remove new reports from distribution
2018-06-10 02:49:50 +00:00
Egor Pugin
a4241c9817
Merge pull request #1655 from stweil/scanedg
...
block_edges: Add assertions for block coordinates
2018-06-09 18:32:05 +03:00
Egor Pugin
7b62e5c7e0
Merge pull request #1656 from stweil/unittest
...
Fix symbolic link in unittest
2018-06-09 18:31:45 +03:00
Egor Pugin
37dadbe478
Merge pull request #1657 from Shreeshrii/master
...
update Spanish UNLV test, use spa.stopwords, iconv to UTF-8
2018-06-09 18:31:35 +03:00
Shreeshrii
d8bed41ec3
change filename to generic ~/
2018-06-09 20:17:51 +05:30