"""span维度自定义字段."""
# span是否是跨页合并的
CROSS_PAGE = 'cross_page'

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

# table recognition max time default value
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-OCRv4_det_infer'

# pp rec model dir
REC_MODEL_DIR = 'ch_PP-OCRv4_rec_infer'

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

# pp rec copy rec directory
PP_REC_DIRECTORY = '.paddleocr/whl/rec/ch/ch_PP-OCRv4_rec_infer'

# pp rec copy det directory
PP_DET_DIRECTORY = '.paddleocr/whl/det/ch/ch_PP-OCRv4_det_infer'


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'

    RAPID_TABLE = 'rapid_table'

    YOLO_V11_LangDetect = 'yolo_v11n_langdetect'


PARSE_TYPE_TXT = 'txt'
PARSE_TYPE_OCR = 'ocr'