mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 06:53:36 +08:00
Clang tidy changes from sync
This commit is contained in:
parent
a18620cfea
commit
a2a72d7ca7
@ -20,8 +20,8 @@
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "unicharcompress.h"
|
||||
#include <memory>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include "tprintf.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
@ -846,9 +846,9 @@ int IntegerMatcher::UpdateTablesForFeature(
|
||||
M3 = ~M3;
|
||||
A3 >>= mult_trunc_shift_bits_;
|
||||
M3 >>= mult_trunc_shift_bits_;
|
||||
if ((unsigned)A3 > evidence_mult_mask_)
|
||||
if (static_cast<uint32_t>(A3) > evidence_mult_mask_)
|
||||
A3 = evidence_mult_mask_;
|
||||
if ((unsigned)M3 > evidence_mult_mask_)
|
||||
if (static_cast<uint32_t>(M3) > evidence_mult_mask_)
|
||||
M3 = evidence_mult_mask_;
|
||||
|
||||
A4 = (A3 * A3) + (M3 * M3);
|
||||
|
@ -58,7 +58,8 @@ INT_PARAM_FLAG(max_iterations, 0, "If set, exit after this many iterations");
|
||||
STRING_PARAM_FLAG(traineddata, "",
|
||||
"Combined Dawgs/Unicharset/Recoder for language model");
|
||||
STRING_PARAM_FLAG(old_traineddata, "",
|
||||
"Previous traineddata arg when changing the character set");
|
||||
"When changing the character set, this specifies the old"
|
||||
" character set that is to be replaced");
|
||||
|
||||
// Number of training images to train between calls to MaintainCheckpoints.
|
||||
const int kNumPagesPerBatch = 100;
|
||||
|
Loading…
Reference in New Issue
Block a user