From a67c53f470e4b5bdc321e0ac6bef368ce91d577e Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Thu, 26 Jun 2025 08:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=BE=E7=89=87=E6=8D=9F?= =?UTF-8?q?=E5=9D=8F=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- photo_mask/auto_photo_mask.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index eefa7a1..cf69105 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ x-env: &template - image: fcb_photo_review:1.15.2 + image: fcb_photo_review:1.15.3 restart: always x-review: diff --git a/photo_mask/auto_photo_mask.py b/photo_mask/auto_photo_mask.py index 89592e5..ef9393b 100644 --- a/photo_mask/auto_photo_mask.py +++ b/photo_mask/auto_photo_mask.py @@ -199,6 +199,8 @@ def mask_photo(img_url, name, id_card_num, color=(255, 255, 255)): # 打开图片 image = image_util.read(img_url) + if not image: + return False, image original_image = image is_masked, image = _mask(image, name, id_card_num, color) if not is_masked: