From 32da27567cca0025d7ecf337ccadba9b4bea4896 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 15:38:35 +0800 Subject: [PATCH] fix: correct threshold default in get_bbox_reversed --- module/base/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/base/utils/utils.py b/module/base/utils/utils.py index c3d9191..31fb796 100644 --- a/module/base/utils/utils.py +++ b/module/base/utils/utils.py @@ -728,7 +728,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.