[fix, wip]: FixRects.connect_broken

This commit is contained in:
283375 2023-08-30 02:21:37 +08:00
parent 8fe53043f7
commit 1c0a24d170
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -36,6 +36,9 @@ class FixRects:
new_rects = []
consumed_rects = []
for rect in rects:
if rect in consumed_rects:
continue
x, y, w, h = rect
# grab those small rects
if not img_height * 0.1 <= h <= img_height * 0.6: