From 3f3a8277b90374169b065a405d1bbf5c017891b6 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Wed, 10 Jul 2024 13:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8D=E6=97=8B=E8=BD=AC?= =?UTF-8?q?=E6=96=B9=E5=90=91=E7=9A=84=E5=9B=BE=E7=89=87=E4=BD=9C=E4=B8=BA?= =?UTF-8?q?=E4=BF=9D=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_mask.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/photo_mask.py b/photo_mask.py index 112bf72..c696855 100644 --- a/photo_mask.py +++ b/photo_mask.py @@ -247,6 +247,9 @@ def photo_mask(pk_phhd, content): angle = int(angles[1]) rotated_img = rotate_image(img["img"], angle) results = get_mask_layout(rotated_img, content) + if not results and "0" not in angles: + angle = 0 + results = get_mask_layout(img["img"], content) if results: is_masked = True