|
|
@@ -169,10 +169,11 @@ class PP_ChatOCRv3_Pipeline(PP_ChatOCR_Pipeline):
|
|
|
content = parsing_res_list[pno]["block_content"]
|
|
|
if label in ["table", "formula"]:
|
|
|
continue
|
|
|
- if label not in normal_text_dict:
|
|
|
- normal_text_dict["words in " + label] = content
|
|
|
+ key = f"words in {label}"
|
|
|
+ if key not in normal_text_dict:
|
|
|
+ normal_text_dict[key] = content
|
|
|
else:
|
|
|
- normal_text_dict["words in " + label] += f"\n {content}"
|
|
|
+ normal_text_dict[key] += f"\n {content}"
|
|
|
|
|
|
table_res_list = layout_parsing_result["table_res_list"]
|
|
|
table_text_list = []
|
|
|
@@ -260,7 +261,6 @@ class PP_ChatOCRv3_Pipeline(PP_ChatOCR_Pipeline):
|
|
|
seal_det_unclip_ratio=seal_det_unclip_ratio,
|
|
|
seal_rec_score_thresh=seal_rec_score_thresh,
|
|
|
):
|
|
|
-
|
|
|
visual_info = self.decode_visual_result(layout_parsing_result)
|
|
|
|
|
|
visual_predict_res = {
|