Constants.py 774 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """
  2. span维度自定义字段
  3. """
  4. # span是否是跨页合并的
  5. CROSS_PAGE = "cross_page"
  6. """
  7. block维度自定义字段
  8. """
  9. # block中lines是否被删除
  10. LINES_DELETED = "lines_deleted"
  11. # struct eqtable
  12. STRUCT_EQTABLE = "struct_eqtable"
  13. # table recognition max time default value
  14. TABLE_MAX_TIME_VALUE = 400
  15. # pp_table_result_max_length
  16. TABLE_MAX_LEN = 480
  17. # pp table structure algorithm
  18. TABLE_MASTER = "TableMaster"
  19. # table master structure dict
  20. TABLE_MASTER_DICT = "table_master_structure_dict.txt"
  21. # table master dir
  22. TABLE_MASTER_DIR = "table_structure_tablemaster_infer/"
  23. # pp detect model dir
  24. DETECT_MODEL_DIR = "ch_PP-OCRv3_det_infer"
  25. # pp rec model dir
  26. REC_MODEL_DIR = "ch_PP-OCRv3_rec_infer"
  27. # pp rec char dict path
  28. REC_CHAR_DICT = "ppocr_keys_v1.txt"