From 5b4f4538abd656eb53ade0d4777fd1068fa6d56f Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:09:27 +0800 Subject: [PATCH] Fix: [ALAS] get_bbox_reversed should have a reversed threshold by default --- module/base/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/base/utils.py b/module/base/utils.py index 9bce6f004..2eff5f813 100644 --- a/module/base/utils.py +++ b/module/base/utils.py @@ -714,7 +714,7 @@ def get_bbox(image, threshold=0): return x[0], y[0], x[-1] + 1, y[-1] + 1 -def get_bbox_reversed(image, threshold=0): +def get_bbox_reversed(image, threshold=255): """ Similar to `get_bbox` but for black contents on white background.