From 04358ee646b87867405296e64964c633fa6209e1 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Thu, 26 Jun 2025 08:58:57 +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, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cf69105..687427a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ x-env: &template - image: fcb_photo_review:1.15.3 + image: fcb_photo_review:1.15.4 restart: always x-review: diff --git a/photo_mask/auto_photo_mask.py b/photo_mask/auto_photo_mask.py index ef9393b..eea755e 100644 --- a/photo_mask/auto_photo_mask.py +++ b/photo_mask/auto_photo_mask.py @@ -199,7 +199,7 @@ def mask_photo(img_url, name, id_card_num, color=(255, 255, 255)): # 打开图片 image = image_util.read(img_url) - if not image: + if image is None: return False, image original_image = image is_masked, image = _mask(image, name, id_card_num, color)