Constants.py 952 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
13
LINES_DELETED = "lines_deleted"

# table recognition max time default value
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
TABLE_MAX_TIME_VALUE = 400

# pp_table_result_max_length
TABLE_MAX_LEN = 480

# 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"


35
36
37
38
39
40
41
42
43
44
45
46
47
class MODEL_NAME:
    # pp table structure algorithm
    TABLE_MASTER = "tablemaster"
    # struct eqtable
    STRUCT_EQTABLE = "struct_eqtable"

    DocLayout_YOLO = "doclayout_yolo"

    LAYOUTLMv3 = "layoutlmv3"

    YOLO_V8_MFD = "yolo_v8_mfd"

    UniMerNet_v2_Small = "unimernet_small"