123456789101112131415161718192021222324252627282930313233 |
- from __future__ import absolute_import
- from __future__ import division
- from __future__ import print_function
- from deploy.hubserving.structure_table.params import read_params as table_read_params
- def read_params():
- cfg = table_read_params()
-
- cfg.layout_model_dir = ''
- cfg.layout_dict_path = './ppocr/utils/dict/layout_publaynet_dict.txt'
- cfg.layout_score_threshold = 0.5
- cfg.layout_nms_threshold = 0.5
- cfg.mode = 'structure'
- cfg.output = './output'
- return cfg
|