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