You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
3.6 KiB

[{'input_path': 'D:\\dsWork\\PaddleOCR\\ImagesSmall\\page_0_compressed.jpg', 'page_index': None, 'doc_preprocessor_res': {'output_img': array([[[104, ..., 217],
...,
[ 48, ..., 56]],
...,
[[ 21, ..., 32],
...,
[ 14, ..., 19]]], shape=(862, 587, 3), dtype=uint8)}, 'layout_det_res': {'input_path': None, 'page_index': None, 'input_img': array([[[104, ..., 217],
...,
[ 48, ..., 56]],
...,
[[ 21, ..., 32],
...,
[ 14, ..., 19]]], shape=(862, 587, 3), dtype=uint8), 'boxes': [{'cls_id': 1, 'label': 'image', 'score': 0.5590275526046753, 'coordinate': [np.float32(146.0109), np.float32(63.905975), np.float32(259.0317), np.float32(180.34189)]}, {'cls_id': 2, 'label': 'text', 'score': 0.4184643626213074, 'coordinate': [np.float32(155.71976), np.float32(3.9154816), np.float32(514.49243), np.float32(34.9183)]}, {'cls_id': 0, 'label': 'paragraph_title', 'score': 0.39416977763175964, 'coordinate': [np.float32(84.17284), np.float32(231.3527), np.float32(140.27222), np.float32(686.1651)]}]}, 'region_det_res': {'input_path': None, 'page_index': None, 'input_img': array([[[104, ..., 217],
...,
[ 48, ..., 56]],
...,
[[ 21, ..., 32],
...,
[ 14, ..., 19]]], shape=(862, 587, 3), dtype=uint8), 'boxes': [{'cls_id': 0, 'label': 'Region', 'score': 0.9720134139060974, 'coordinate': array([ 84.17284, ..., 686.1651 ], shape=(4,), dtype=float32)}]}, 'overall_ocr_res': {'input_path': None, 'page_index': None, 'doc_preprocessor_res': {'output_img': array([[[104, ..., 217],
...,
[ 48, ..., 56]],
...,
[[ 21, ..., 32],
...,
[ 14, ..., 19]]], shape=(862, 587, 3), dtype=uint8)}, 'dt_polys': [array([[155, 7],
...,
[156, 34]], shape=(4, 2), dtype=int16), array([[ 85, 234],
...,
[ 85, 685]], shape=(4, 2), dtype=int16)], 'model_settings': {'use_doc_preprocessor': False, 'use_textline_orientation': True}, 'text_det_params': {'limit_side_len': 736, 'limit_type': 'min', 'thresh': 0.3, 'max_side_limit': 4000, 'box_thresh': 0.6, 'unclip_ratio': 1.5}, 'text_type': 'general', 'text_rec_score_thresh': 0.0, 'rec_texts': ['中國古典文學基本叢書', '蘇轼詞编年校注'], 'rec_scores': [0.8946498036384583, 0.7676457762718201], 'rec_polys': [array([[155, 7],
...,
[156, 34]], shape=(4, 2), dtype=int16), array([[ 85, 234],
...,
[ 85, 685]], shape=(4, 2), dtype=int16)], 'textline_orientation_angles': [0, 0], 'rec_boxes': array([[155, ..., 34],
[ 85, ..., 685]], shape=(2, 4), dtype=int16), 'rec_labels': ['text', 'text']}, 'table_res_list': [], 'seal_res_list': [], 'chart_res_list': [], 'formula_res_list': [], 'parsing_res_list': [
#################
index: 1
label: text
region_label: normal_text
bbox: [155, 3, 514, 34]
content: 中國古典文學基本叢書
#################,
#################
index: 2
label: doc_title
region_label: doc_title
bbox: [84, 231, 140, 686]
content: 蘇轼詞编年校注
#################,
#################
index: 0
label: image
region_label: vision
bbox: [146, 63, 259, 180]
content:
#################], 'imgs_in_doc': [{'path': 'imgs/img_in_image_box_146_63_259_180.jpg', 'img': <PIL.Image.Image image mode=RGB size=113x117 at 0x25466A74910>, 'coordinate': (146, 63, 259, 180), 'score': 0.5590275526046753}], 'model_settings': {'use_doc_preprocessor': False, 'use_seal_recognition': True, 'use_table_recognition': True, 'use_formula_recognition': True, 'use_chart_recognition': False, 'use_region_detection': True}}]