调整图片删除位置

This commit is contained in:
2024-10-15 13:45:11 +08:00
parent c28fc62d3f
commit b09f16fe23

View File

@@ -438,12 +438,14 @@ def photo_review(pk_phhd, name):
ZxPhrec.pk_phhd == pk_phhd ZxPhrec.pk_phhd == pk_phhd
).all() ).all()
session.close() session.close()
# 同一批图的标识 # 同一批图的标识
set_batch_id(uuid.uuid4().hex) set_batch_id(uuid.uuid4().hex)
discharge_text = ''
for phrec in phrecs:
processed_img_dir = common_util.get_processed_img_path('') processed_img_dir = common_util.get_processed_img_path('')
os.makedirs(processed_img_dir, exist_ok=True) os.makedirs(processed_img_dir, exist_ok=True)
discharge_text = ''
for phrec in phrecs:
rec_type, ie_result, ocr_text = information_extraction(phrec, pk_phhd) rec_type, ie_result, ocr_text = information_extraction(phrec, pk_phhd)
if rec_type == '基本医保结算单': if rec_type == '基本医保结算单':
rec_result = settlement_result rec_result = settlement_result