fix: correct threshold default in get_bbox_reversed

This commit is contained in:
2026-07-06 22:40:46 +08:00
parent 9b078b02d7
commit 32da27567c
+1 -1
View File
@@ -728,7 +728,7 @@ def get_bbox(image, threshold=0):
return x[0], y[0], x[-1] + 1, y[-1] + 1 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. Similar to `get_bbox` but for black contents on white background.