From 0c2bfb4d0f4c0ae9c608a993ba84041576303279 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Thu, 25 Jul 2024 16:23:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8F=98=E9=87=8F=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=90=8C=E6=AD=A5=E4=BF=AE=E6=94=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_mask/photo_mask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photo_mask/photo_mask.py b/photo_mask/photo_mask.py index 9c82182..a4921bf 100644 --- a/photo_mask/photo_mask.py +++ b/photo_mask/photo_mask.py @@ -151,7 +151,7 @@ def get_mask_layout(image, name, id_card_num): for m in match_list: if m in layout[1]: boxes += find_boxes(m, layout, offset=len(m), length=key["length"]) - if matches: + if match_list: break return boxes