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: