修正图片可能因为某些原因获取不到而无法继续的问题

This commit is contained in:
2025-05-21 11:26:01 +08:00
parent 0de9fc14b5
commit cd604bc1eb
2 changed files with 4 additions and 1 deletions

View File

@@ -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:

View File

@@ -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)