Constants.py 774 Bytes
Newer Older
liukaiwen's avatar
liukaiwen committed
1
2
3
4
5
6
7
8
9
10
"""
span维度自定义字段
"""
# span是否是跨页合并的
CROSS_PAGE = "cross_page"

"""
block维度自定义字段
"""
# block中lines是否被删除
11
12
LINES_DELETED = "lines_deleted"

13
14
15
# struct eqtable
STRUCT_EQTABLE = "struct_eqtable"

16
# table recognition max time default value
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TABLE_MAX_TIME_VALUE = 400

# pp_table_result_max_length
TABLE_MAX_LEN = 480

# pp table structure algorithm
TABLE_MASTER = "TableMaster"

# table master structure dict
TABLE_MASTER_DICT = "table_master_structure_dict.txt"

# table master dir
TABLE_MASTER_DIR = "table_structure_tablemaster_infer/"

# pp detect model dir
DETECT_MODEL_DIR = "ch_PP-OCRv3_det_infer"

# pp rec model dir
REC_MODEL_DIR = "ch_PP-OCRv3_rec_infer"

# pp rec char dict path
REC_CHAR_DICT = "ppocr_keys_v1.txt"