OCR.yaml 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. pipeline_name: OCR
  2. text_type: general
  3. use_doc_preprocessor: True
  4. use_textline_orientation: True
  5. SubPipelines:
  6. DocPreprocessor:
  7. pipeline_name: doc_preprocessor
  8. use_doc_orientation_classify: True
  9. use_doc_unwarping: True
  10. SubModules:
  11. DocOrientationClassify:
  12. module_name: doc_text_orientation
  13. model_name: PP-LCNet_x1_0_doc_ori
  14. model_dir: null
  15. DocUnwarping:
  16. module_name: image_unwarping
  17. model_name: UVDoc
  18. model_dir: null
  19. SubModules:
  20. TextDetection:
  21. module_name: text_detection
  22. model_name: PP-OCRv4_mobile_det
  23. model_dir: null
  24. limit_side_len: 960
  25. limit_type: max
  26. thresh: 0.3
  27. box_thresh: 0.6
  28. unclip_ratio: 2.0
  29. TextLineOrientation:
  30. module_name: textline_orientation
  31. model_name: PP-LCNet_x0_25_textline_ori
  32. model_dir: null
  33. batch_size: 6
  34. TextRecognition:
  35. module_name: text_recognition
  36. model_name: PP-OCRv4_mobile_rec
  37. model_dir: null
  38. batch_size: 6
  39. score_thresh: 0.0