zdenop
87a152c0eb
cmake: target_compile_features instead of set_property
2024-03-30 11:25:27 +01:00
Stefan Weil
baf8e80068
Fix CID 1534954 (COPY_INSTEAD_OF_MOVE)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-09 13:50:52 +01:00
Stefan Weil
4c0f911092
Fix CID 1534957 (COPY_INSTEAD_OF_MOVE)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-09 13:50:52 +01:00
Stefan Weil
151cf07086
Fix CID 1534940 (COPY_INSTEAD_OF_MOVE)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-09 13:50:52 +01:00
Stefan Weil
8690d5ac37
Remove unneeded constant kNumSingleQuoteUnicodes
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-05 14:12:50 +01:00
Stefan Weil
6a608e5251
Remove unneeded constant kNumDoubleQuoteUnicodes
...
Fixes: 2fbb81070f
("normstrngs: add more hyphens and quotes")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-05 14:11:07 +01:00
Stefan Weil
6b99ec616f
Remove unneeded constant kNumHyphenPuncUnicodes
...
Fixes: 2fbb81070f
("normstrngs: add more hyphens and quotes")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-05 14:05:26 +01:00
Robert Sachunsky
a08a6ac217
fix initializer syntax
2024-03-05 13:12:10 +01:00
Robert Sachunsky
2fbb81070f
normstrngs: add more hyphens and quotes
2024-03-05 13:12:10 +01:00
Stefan Weil
fbff9362ce
Fix some typos
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-02-22 07:55:33 +01:00
Stefan Weil
4a6efcd9b7
Avoid unnecessary conversions from std::string to char pointer
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-12-29 10:30:21 +01:00
Tom Morris
07174708ff
Document hidden combo flags
2023-10-23 19:48:07 -04:00
Stefan Weil
d1abdf353a
Remove whitespace at line endings
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-13 10:01:59 +02:00
Stefan Weil
6cb82d8b1d
Avoid 32 bit overflow in multiplication (fixes 3 CodeQL CI alerts)
...
The CodeQL CI reports "Multiplication result converted to larger type".
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-09 13:14:10 +02:00
Stefan Weil
38a49e45b4
Use less digits in filenames of checkpoints written by lstmtraining
...
lstmtraining had written checkpoints using names like ONB_68.852000_6368_6500.checkpoint.
Now the superfluous '000' is omitted and the name will be ONB_68.852_6368_6500.checkpoint.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-05 19:19:03 +02:00
Stefan Weil
0f56340151
Improve format of logging from lstmtraining
...
- always use C ("classic") locale
- limit output of floating point values to 3 digits
- remove unneeded linefeed after log message "wrote checkpoint"
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-05 12:28:24 +02:00
ben417
ed69e574a9
Support for Sgaw and W Pwo Karen languages in the Myanmar validator. ( #4065 )
...
1. Added 0x102c and 0x1062 in the tone mark section, in Karen these can
be tones too.
2. Added the optional 0x103a, 0x1037, and 0x1038 after the tones. Asat
is part of the Sgaw tone mark and dot below and visarga are used as
nasal marks following the Pwo tones.
2023-05-05 09:42:56 +03:00
Zdenko Podobný
9bac701d5e
cmake: fix gcc-7 fatal error: filesystem: No such file or directory
2023-02-10 09:51:59 +01:00
Stefan Weil
1e04be842d
Replace 'can not' by 'cannot'
...
Both forms are used in American English, but 'cannot' is more common
(also in Tesseract code), so use it always.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-02-08 17:34:22 +01:00
Leander Schulten
680d1e231c
Fix linkage of icu and pango
2023-01-28 04:19:45 +01:00
zdenop
0ef192050a
fix "cannot pass non-trivial object of type 'std::string'"
2023-01-08 19:13:48 +01:00
zdenop
804b63646f
show out filename on successful created of traineddata (combine_lang_model)
2023-01-08 18:30:31 +01:00
zdenop
005bfe4950
fix "cannot pass non-trivial object of type 'std::string'"
2023-01-06 18:34:16 +01:00
zdenop
8a26329623
unicharset_extractor:
...
- run ReadMemBoxes only for box files
- do not write unicharset in case of broken box file
2023-01-06 15:52:42 +01:00
Stefan Weil
a806d21883
Fix function ReadTrainingSamples (issue #3925 )
...
This fixes duplicate delete when running cntraining.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-12-13 08:04:50 +01:00
Stefan Weil
af131241af
Fix training tools for legacy engine (issue #3925 ) ( #3970 )
...
Fixes: cac116dd11
("Replace more PointerVector by std::vector [...]")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-30 09:39:45 +02:00
Stefan Weil
a9c1be658e
Fix a number of performance issues (reported by Coverity Scan)
...
Coverity Scan reports "Unnecessary object copies can affect performance"
and suggests using the auto keyword with an &.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-20 19:00:51 +01:00
Zdenko Podobný
7d073f24fb
github action/cmake: fix macos icu linking
2022-11-09 12:40:48 +01:00
zdenop
490611e4c6
cmake: fix linux&mac build
2022-11-06 18:11:22 +01:00
zdenop
4ab09a63b2
fix typo in variable
2022-11-06 17:43:53 +01:00
zdenop
b593a57676
show dropped unrendable words
2022-11-01 18:54:48 +01:00
zdenop
41c480d4f2
cmake: install common_training and unicharset_training libs
2022-11-01 18:54:37 +01:00
zdenop
954c5413c1
cmake: we can build training tools without PkgConfig
2022-11-01 18:54:19 +01:00
Stefan Weil
989956c998
Replace call of exit function by return statement in main function
...
Add also a missing return statement and use EXIT_FAILURE
and EXIT_SUCCESS instead of 1 and 0 as return values.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-07-20 20:32:27 +02:00
Povilas Kanapickas
9a74c4ccad
viewer: Use std::unique_ptr in waiting_for_events data structure
...
The current usage of waiting_for_events is taking ownership of SVEvent
pointer from a unique_ptr. This is error prone as all code paths using
waiting_for_events need to ensure deletion. We fix it by using
unique_ptr in waiting_for_events and all dependent code paths.
2022-07-18 18:04:30 +03:00
Stefan Weil
96861b58ae
Add new parameter for invert_threshold ( #3852 )
...
Change default value from 0.5 to 0.7.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-06-26 12:32:56 +03:00
Stefan Weil
27b1827ccd
Update code to support Leptonica 1.83.0 and newer
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-06-23 12:11:00 +02:00
Stefan Weil
70109f1e8f
Use Leptonica API to access internals of Pix
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-06-23 11:23:22 +02:00
Stefan Weil
330d49a0a3
Replace BOX -> Box
...
Both are equivalent, but the rest of the code already uses Box.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-06-10 19:20:19 +02:00
Yulv-git
8bc7a9591d
Fix some typos.
2022-06-05 16:48:20 +08:00
Egor Pugin
dbc14e68d4
Fix warnings.
2022-02-07 01:00:11 +03:00
Egor Pugin
eeb4121888
Fix warnings.
2022-02-07 00:21:26 +03:00
Egor Pugin
f526bf30bb
Fix warnings.
2022-02-07 00:19:52 +03:00
Stefan Weil
04a66b91e6
Don't use <XXX>_LINK_LIBRARIES for cmake before version 3.12
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 16:34:10 +01:00
Stefan Weil
28f854186f
cmake: reformat with cmake-format
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 16:34:10 +01:00
Stefan Weil
b8b2ab225f
Simplify cmake check for Pango related modules
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-03 16:34:10 +01:00
Stefan Weil
e1764e1bc8
Use cmake policy CMP0074 only with version 3.12 or newer
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-01 23:00:47 +01:00
Stefan Weil
25d25b5e09
Remove unused forward declaration
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-30 17:52:29 +01:00
Stefan Weil
7a218f1d6c
Fix compiler warning [-Wsign-compare]
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-25 17:02:45 +01:00
Stefan Weil
34311179f5
Allow printing of bitfield with variadic templates
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-23 16:38:00 +01:00