ENV: min_subgraph_size: 3 trt_calib_mode: False cpu_threads: 1 trt_use_static: False save_img: True save_res: True return_res: True MODEL: - OcrDbDetOp: name: det param_path: paddlecv://models/ch_PP-OCRv3_det_infer/inference.pdiparams model_path: paddlecv://models/ch_PP-OCRv3_det_infer/inference.pdmodel batch_size: 1 PreProcess: - RGB2BGR: - DetResizeForTest: limit_side_len: 960 limit_type: "max" - NormalizeImage: std: [0.229, 0.224, 0.225] mean: [0.485, 0.456, 0.406] scale: '1./255.' order: 'hwc' - ToCHWImage: - ExpandDim: axis: 0 - KeepKeys: keep_keys: ['image', 'shape'] PostProcess: - DBPostProcess: thresh: 0.3 box_thresh: 0.6 max_candidates: 1000 unclip_ratio: 1.5 use_dilation: False score_mode: "fast" box_type: "quad" Inputs: - input.image - PolyCropOp: name: crop Inputs: - input.image - det.dt_polys - OcrCrnnRecOp: name: rec param_path: paddlecv://models/ch_PP-OCRv3_rec_infer/inference.pdiparams model_path: paddlecv://models/ch_PP-OCRv3_rec_infer/inference.pdmodel batch_size: 6 PreProcess: - RGB2BGR: - ReisizeNormImg: rec_image_shape: [3, 48, 320] PostProcess: - CTCLabelDecode: character_dict_path: "paddlecv://dict/ocr/ch_dict.txt" use_space_char: true Inputs: - crop.crop_image - PPStructureTableStructureOp: name: table param_path: paddlecv://models/ch_PP-StructureV2_SLANet_infer/inference.pdiparams model_path: paddlecv://models/ch_PP-StructureV2_SLANet_infer/inference.pdmodel batch_size: 1 PreProcess: - RGB2BGR: - ResizeTableImage: max_len: 488 - NormalizeImage: scale: 1./255. mean: [ 0.485, 0.456, 0.406 ] std: [ 0.229, 0.224, 0.225 ] order: 'hwc' - PaddingTableImage: size: [ 488, 488 ] - ToCHWImage: - ExpandDim: axis: 0 PostProcess: - TableLabelDecode: character_dict_path: "paddlecv://dict/ocr/table_structure_dict_ch.txt" merge_no_span_structure: true Inputs: - input.image - TableMatcherOp: name: Matcher Inputs: - table.dt_bboxes - table.structures - det.dt_polys - rec.rec_text - OCRTableOutput: name: vis Inputs: - input.fn - input.image - table.dt_bboxes - table.structures - table.scores - Matcher.html