mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Remove an arbitrary limit for the image size
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a0cf117c5d
commit
57b7974292
@ -190,11 +190,6 @@ std::tuple<bool, Image, Image, Image> ImageThresholder::Threshold(
|
||||
Image pix_binary = nullptr;
|
||||
Image pix_thresholds = nullptr;
|
||||
|
||||
if (image_width_ > INT16_MAX || image_height_ > INT16_MAX) {
|
||||
tprintf("Image too large: (%d, %d)\n", image_width_, image_height_);
|
||||
return std::make_tuple(false, nullptr, nullptr, nullptr);
|
||||
}
|
||||
|
||||
if (pix_channels_ == 0) {
|
||||
// We have a binary image, but it still has to be copied, as this API
|
||||
// allows the caller to modify the output.
|
||||
|
Loading…
Reference in New Issue
Block a user