只有结算单才进行高清图片替换

This commit is contained in:
2024-09-11 10:24:18 +08:00
parent 4cce7e8ef1
commit 7cd0a564a0
2 changed files with 18 additions and 16 deletions

View File

@@ -149,6 +149,8 @@ def information_extraction(ie, phrecs, identity):
# 尝试从二维码中获取高清图片
better_image, text = get_better_image_from_qrcode(image, phrec.cfjaddress)
if phrec.cRectype != '1':
better_image = None # 非结算单暂时不进行替换
zx_ie_results = []
if better_image is not None:
img_angle = '0'