mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix CID 1534933, 1534937 (COPY_INSTEAD_OF_MOVE)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
479789b379
commit
f00d4b22dc
@ -366,8 +366,8 @@ bool LSTMRecognizer::RecognizeLine(const ImageData &image_data,
|
||||
tprintf("Inverting image: old min=%g, mean=%g, sd=%g, inv %g,%g,%g\n", pos_min, pos_mean,
|
||||
pos_sd, inv_min, inv_mean, inv_sd);
|
||||
}
|
||||
*outputs = inv_outputs;
|
||||
*inputs = inv_inputs;
|
||||
*outputs = std::move(inv_outputs);
|
||||
*inputs = std::move(inv_inputs);
|
||||
} else if (re_invert) {
|
||||
// Inverting was not an improvement, so undo and run again, so the
|
||||
// outputs match the best forward result.
|
||||
|
Loading…
Reference in New Issue
Block a user