3e76f8c6 by 王聪

更新ocr process 部分代码结构,待测试

1 parent 1bd8e3a4
......@@ -2448,7 +2448,10 @@ class Command(BaseCommand, LoggerMixin):
self.online_log.info('{0} [stop safely]'.format(self.log_base))
class OcrResultProcess(Command):
DOC_SCHEME_LIST = ['ACCEPTANCE', 'SETTLEMENT', 'CONTRACTMANAGEMENT', 'INSURANCE']
class OcrResultProcess(Command, LoggerMixin):
def __init__(self):
self.wb = None
self.doc = None
......@@ -2470,10 +2473,11 @@ class OcrResultProcess(Command):
self.ocr_1_res = {}
self.dda_id_bc_mapping = {}
self.report_list = []
self.ic_merge = False
self.rp_merge = False
super().__init__()
def save_ocr_result_to_wb(self):
# 4.OCR结果并且构建excel文件
bs_classify_set = self.bs_classify_set
......@@ -3233,7 +3237,6 @@ class OcrResultProcess(Command):
consts.DDA_FIELD, set()).add(dda_path)
if dda_record.is_dda_found:
try:
if not dda_record.is_id_found:
for ic_name, ic_id, ic_img_path in ic_res_list:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!