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)