Merge branch 'feature/fsm-contract' into fix/report_ca
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -1517,6 +1517,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1517,6 +1517,7 @@ class Command(BaseCommand, LoggerMixin): |
1517 | elif classify_1_str in consts.FSM_CONTRACT_TYPE_MAP: | 1517 | elif classify_1_str in consts.FSM_CONTRACT_TYPE_MAP: |
1518 | file_type = consts.FSM_CONTRACT_TYPE_MAP.get(classify_1_str) | 1518 | file_type = consts.FSM_CONTRACT_TYPE_MAP.get(classify_1_str) |
1519 | ocr_result = fsm_predict(pdf_handler.pdf_info, file_type) | 1519 | ocr_result = fsm_predict(pdf_handler.pdf_info, file_type) |
1520 | page_res = {} | ||
1520 | for page_num, page_info in ocr_result.items(): | 1521 | for page_num, page_info in ocr_result.items(): |
1521 | if isinstance(page_num, str) and page_num.startswith('page_'): | 1522 | if isinstance(page_num, str) and page_num.startswith('page_'): |
1522 | page_res[page_num] = { | 1523 | page_res[page_num] = { | ... | ... |
-
Please register or sign in to post a comment