From cd604bc1ebecf1b21578b69581fdbbe57d82b489 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Wed, 21 May 2025 11:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=9B=BE=E7=89=87=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=9B=A0=E4=B8=BA=E6=9F=90=E4=BA=9B=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0=E8=80=8C=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- photo_review/auto_photo_review.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 49b02cb..eefa7a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ x-env: &template - image: fcb_photo_review:1.15.1 + image: fcb_photo_review:1.15.2 restart: always x-review: diff --git a/photo_review/auto_photo_review.py b/photo_review/auto_photo_review.py index 9bad296..a0b4028 100644 --- a/photo_review/auto_photo_review.py +++ b/photo_review/auto_photo_review.py @@ -160,6 +160,9 @@ def information_extraction(ie, phrecs, identity): continue image = image_util.read(img_path) + if image is None: + # 图片可能因为某些原因获取不到 + continue # 尝试从二维码中获取高清图片 better_image, text = get_better_image_from_qrcode(image, phrec.cfjaddress)