只有结算单才进行高清图片替换
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
x-env:
|
||||
&template
|
||||
image: fcb_photo_review:1.14.4
|
||||
image: fcb_photo_review:1.14.5
|
||||
restart: always
|
||||
|
||||
x-review:
|
||||
@@ -105,18 +105,18 @@ services:
|
||||
- photo_mask_1
|
||||
command: [ 'photo_mask.py' ]
|
||||
|
||||
photo_review_6:
|
||||
<<: *review_template
|
||||
container_name: photo_review_6
|
||||
hostname: photo_review_6
|
||||
depends_on:
|
||||
- photo_mask_2
|
||||
command: [ 'photo_review.py' ]
|
||||
|
||||
photo_review_7:
|
||||
<<: *review_template
|
||||
container_name: photo_review_7
|
||||
hostname: photo_review_7
|
||||
depends_on:
|
||||
- photo_review_6
|
||||
command: [ 'photo_review.py' ]
|
||||
# photo_review_6:
|
||||
# <<: *review_template
|
||||
# container_name: photo_review_6
|
||||
# hostname: photo_review_6
|
||||
# depends_on:
|
||||
# - photo_mask_2
|
||||
# command: [ 'photo_review.py' ]
|
||||
#
|
||||
# photo_review_7:
|
||||
# <<: *review_template
|
||||
# container_name: photo_review_7
|
||||
# hostname: photo_review_7
|
||||
# depends_on:
|
||||
# - photo_review_6
|
||||
# command: [ 'photo_review.py' ]
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user