mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Fix a bug in the thresholder
This commit is contained in:
parent
5a36943de4
commit
7f349a47b6
@ -198,7 +198,7 @@ std::tuple<bool, Image, Image, Image> ImageThresholder::Threshold(
|
||||
Image original = GetPixRect();
|
||||
pix_binary = original.copy();
|
||||
original.destroy();
|
||||
return std::make_tuple(false, nullptr, pix_binary, nullptr);
|
||||
return std::make_tuple(true, nullptr, pix_binary, nullptr);
|
||||
}
|
||||
|
||||
auto pix_grey = GetPixRectGrey();
|
||||
|
Loading…
Reference in New Issue
Block a user