mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 07:29:07 +08:00
Allow line images with larger width
Line images can be larger than the old limit, especially when training is made with newspaper lines. Image too large to learn!! Size = 2641x36 Image too large to learn!! Size = 2704x36 Image too large to learn!! Size = 2751x36 Image too large to learn!! Size = 3738x36 Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
43bbcd4ce2
commit
34bdc8b74e
@ -266,7 +266,7 @@ bool LSTMRecognizer::RecognizeLine(const ImageData& image_data, bool invert,
|
||||
float* scale_factor, NetworkIO* inputs,
|
||||
NetworkIO* outputs) {
|
||||
// Maximum width of image to train on.
|
||||
const int kMaxImageWidth = 2560;
|
||||
const int kMaxImageWidth = 4096;
|
||||
// This ensures consistent recognition results.
|
||||
SetRandomSeed();
|
||||
int min_width = network_->XScaleFactor();
|
||||
|
Loading…
Reference in New Issue
Block a user