1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 15:39:26 +08:00

Fix: [ALAS] get_bbox_reversed should have a reversed threshold by default

This commit is contained in:
LmeSzinc
2025-02-20 12:09:27 +08:00
parent ad8157ac6b
commit 5b4f4538ab

View File

@@ -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.