修正图片可能因为某些原因获取不到而无法继续的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
x-env:
|
x-env:
|
||||||
&template
|
&template
|
||||||
image: fcb_photo_review:1.15.1
|
image: fcb_photo_review:1.15.2
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
x-review:
|
x-review:
|
||||||
|
|||||||
@@ -160,6 +160,9 @@ def information_extraction(ie, phrecs, identity):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
image = image_util.read(img_path)
|
image = image_util.read(img_path)
|
||||||
|
if image is None:
|
||||||
|
# 图片可能因为某些原因获取不到
|
||||||
|
continue
|
||||||
|
|
||||||
# 尝试从二维码中获取高清图片
|
# 尝试从二维码中获取高清图片
|
||||||
better_image, text = get_better_image_from_qrcode(image, phrec.cfjaddress)
|
better_image, text = get_better_image_from_qrcode(image, phrec.cfjaddress)
|
||||||
|
|||||||
Reference in New Issue
Block a user