Stefan Weil
2ba194ca8d
Remove four unused parameters
...
This fixes some compiler warnings:
src/classify/intmatcher.cpp:711:63: warning: unused parameter ‘ConfigMask’ [-Wunused-parameter]
src/classify/intmatcher.cpp:1007:16: warning: unused parameter ‘ProtoMask’ [-Wunused-parameter]
src/classify/intmatcher.cpp:1095:61: warning: unused parameter ‘NumFeatures’ [-Wunused-parameter]
src/classify/intmatcher.cpp:1136:59: warning: unused parameter ‘used_features’ [-Wunused-parameter]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-22 11:30:24 +01:00
Stefan Weil
dd79d56e9f
Remove unused parameter BlobLength
...
This fixes two compiler warnings:
src/classify/intmatcher.cpp:553:14: warning: unused parameter ‘BlobLength’ [-Wunused-parameter]
src/classify/intmatcher.cpp:622:14: warning: unused parameter ‘BlobLength’ [-Wunused-parameter]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-22 11:17:19 +01:00
Shree
9b915d5efb
add --distort_image
2019-03-22 05:39:38 +00:00
Shree
f7ffde99d5
add --distort_image
2019-03-22 05:34:00 +00:00
zdenop
ac7ea4322a
Merge pull request #2335 from Shreeshrii/master
...
Changes to tesstrain.py - max_workers=8, distort_image=false
2019-03-17 15:27:34 +01:00
zdenop
26877ba703
check min. python version; os.uname is not available on windows
2019-03-17 15:25:48 +01:00
zdenop
8891ba9711
add autotools options to cmake build
2019-03-17 14:50:36 +01:00
Shreeshrii
f8e8521606
Update tesstrain_utils.py
2019-03-17 15:32:35 +05:30
Shree
6fa8e1bb15
Set max_workers=8
2019-03-17 09:58:11 +00:00
Shree
e21499e81e
Set default value for distort_image
2019-03-17 09:54:16 +00:00
Shree
af7a97e33e
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
2019-03-16 14:30:24 +00:00
zdenop
ea3b806357
Merge pull request #2332 from stweil/doc
...
Remove old comments in file headers
2019-03-16 11:02:11 +01:00
Stefan Weil
ee2f9bf7bf
Remove old comments in file headers
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-16 10:55:00 +01:00
zdenop
1b40cae0f2
Merge pull request #2329 from Shreeshrii/kur_train
...
training script changes
2019-03-16 10:27:35 +01:00
zdenop
0b72f4b722
Merge pull request #2331 from stweil/doc
...
Improve man page for tesseract and add Makefile rule for PDF
2019-03-16 10:26:16 +01:00
Stefan Weil
5f76a8495b
Sort options alphabetically in tesseract man page
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-16 10:19:00 +01:00
Stefan Weil
b55984fb88
Add description for new --dpi option in tesseract man page
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-16 09:33:41 +01:00
Stefan Weil
26b4457b86
Add description for new --psm values in tesseract man page
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-16 09:24:40 +01:00
Stefan Weil
a6981ae548
Improve man page for tesseract
...
Format it like the example
https://github.com/asciidoc/asciidoc/blob/master/doc/asciidoc.1.txt .
Replace tab characters by blanks.
Add also a chapter on environment variables.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-16 08:54:28 +01:00
Stefan Weil
6b3c81c909
Add rule for PDF documentation
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-15 21:53:34 +01:00
Shree
804d2aaecf
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
2019-03-15 17:41:12 +00:00
Shree
d47b0d588a
Use LATIN_FONTS for kmr
2019-03-15 15:47:56 +00:00
Shree
3eee1d217a
Add kmr and kur_ara, remove kur from training scripts
2019-03-15 15:37:49 +00:00
Robert Schubert
297d7d86ce
trying to add user words/patterns again:
...
- pass in ParamsVectors from Tesseract
(carrying values from langdata/config/api)
into LSTMRecognizer::Load and LoadDictionary
- after LSTMRecognizer's Dict is initialised
(with default values), reset the variables
user_{words,patterns}_{suffix,file} from the
corresponding entries in the passed vector
2019-03-15 16:06:19 +01:00
Shree
b2ebf0195f
Add kmr and kur_ara, remove kur from training scripts
2019-03-15 14:39:39 +00:00
Shree
37befdf6c4
Add option for --distort_image
2019-03-15 13:32:36 +00:00
Egor Pugin
29389f7145
Fix appveyor artifacts.
2019-03-15 15:55:15 +03:00
Stefan Weil
e14797563b
Update documentation for supported languages
...
kur_ara.traineddata was renamed to kmr.traineddata.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-15 11:07:54 +01:00
Stefan Weil
85d7feebf7
Add missing documentation for --help-extra
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-15 09:36:10 +01:00
zdenop
0a36b38169
Merge pull request #2317 from eighttails/master
...
Added missing linker flags for MinGW.
2019-03-15 08:01:21 +01:00
Robert Schubert
14346e56b0
tesstrain: catch+handle SIGINT (to stop waiting on subjobs)
2019-03-15 00:03:16 +01:00
Robert Schubert
6cbad17e30
tesstrain: check all subjobs' retval
2019-03-14 14:38:51 +01:00
Robert Schubert
5316bcbb94
tesstrain: check failure of subjobs
2019-03-14 11:42:01 +01:00
Stefan Weil
4c2bbebecc
Fix compiler warning (-Wunused-value)
...
Warning from clang++:
..\src\ccmain\ltrresultiterator.cpp(454,8): warning: expression result unused [-Wunused-value]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-13 20:56:03 +01:00
Stefan Weil
ed84ba0a44
Fix wrong comparison
...
symbol_steps is a vector, so testing for a nullptr was wrong.
clang++ reports:
..\src\ccmain\ltrresultiterator.cpp(440,19): warning: comparison of address of 'this->word_res_->symbol_steps' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (&word_res_->symbol_steps == nullptr || !LSTM_mode_) return nullptr;
~~~~~~~~~~~^~~~~~~~~~~~ ~~~~~~~
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-13 20:38:38 +01:00
Tadahito Yao
bbbd262a8d
Added missing linker flags for MinGW.
2019-03-13 22:10:36 +09:00
Stefan Weil
681e6301cd
Merge pull request #2316 from vidiecan/fix_accumulated_timesteps_check
...
`accumulated_timesteps` is not a pointer but a vector
2019-03-13 13:17:18 +01:00
jm server2
1206362d30
accumulated_timesteps
is not a pointer but a vector and in case we use ChoiceIterator without lstm_choice_mode
tesseract crashes (or similar) because the check is true and we reference not existing item
2019-03-13 12:55:14 +01:00
Stefan Weil
3baf0d8076
Fix boolean assignments
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-12 15:34:24 +01:00
zdenop
e965de77eb
Merge pull request #2314 from stweil/svpaint
...
Remove svpaint.cpp from libtesseract
2019-03-12 12:36:22 +01:00
Stefan Weil
8ad0489f0f
Remove svpaint.cpp from libtesseract
...
svpaint is a standalone application (it includes a main function)
and should not be part of the Tesseract library.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-12 12:22:53 +01:00
zdenop
7546a01020
Merge pull request #2310 from noahmetzger/LSTMChoiceRIL
...
Lstm choice ril
2019-03-12 10:46:11 +01:00
zdenop
76fbade3ee
Merge pull request #2309 from stweil/fuzz
...
Fix several runtime errors (found by OSS-Fuzz)
2019-03-12 10:45:21 +01:00
Stefan Weil
35a999f91a
Fix assertion caused by wrong unicharset
...
Credit to OSS-Fuzz: it found another case which triggered this assertion:
contains_unichar_id(unichar_id):Error:Assert failed:in file ../../src/ccutil/unicharset.h, line 502
This is the OSS-Fuzz testcase:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13662
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-12 09:31:21 +01:00
Stefan Weil
56a39bda77
Fix float division by zero
...
That runtime error is normally not visible because it does not abort
the program, but is detected when the code was compiled with sanitizers.
It can be triggered with this OSS-Fuzz testcase:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13662
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-12 09:28:16 +01:00
Noah Metzger
5b3e2fe812
Integrated accumulated Symbol Choice in the Choice Iterator and made the api lstm_choice_mode independent
...
Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
2019-03-12 09:15:10 +01:00
Stefan Weil
4c0b98bd12
Replace undefined shift operations by multiplications
...
Shift operations are undefined for negative numbers, but at least on
Intel they return the same value as a multiplication with 2 ^ shift value.
This fixes runtime errors reported by sanitizers and OSS-Fuzz:
intmatcher.cpp:821:59: runtime error: left shift of negative value -14
intmatcher.cpp:823:75: runtime error: left shift of negative value -512
intmatcher.cpp:820:50: runtime error: left shift of negative value -80
See issue #2297 and
https://oss-fuzz.com/testcase-detail/4845195990925312 for details.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-12 06:56:54 +01:00
Stefan Weil
896698a4f5
Fix runtime error (left shift of negative value)
...
Runtime error:
src/training/util.h:37:28: runtime error: left shift of negative value -17
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-12 06:56:54 +01:00
Egor Pugin
59cd716609
Merge pull request #2311 from stweil/global
...
Remove globals.h
2019-03-11 22:33:16 +03:00
Stefan Weil
5202208a8c
Remove globals.h
...
It only included other files which are already included where needed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-11 19:01:23 +01:00