OCR.yaml 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. batch_size: 1
  16. DocUnwarping:
  17. module_name: image_unwarping
  18. model_name: UVDoc
  19. model_dir: null
  20. batch_size: 1
  21. SubModules:
  22. TextDetection:
  23. module_name: text_detection
  24. model_name: PP-OCRv4_mobile_det
  25. model_dir: null
  26. batch_size: 1
  27. TextLineOrientation:
  28. module_name: textline_orientation
  29. model_name: PP-LCNet_x0_25_textline_ori
  30. model_dir: null
  31. batch_size: 1
  32. TextRecognition:
  33. module_name: text_recognition
  34. model_name: PP-OCRv4_mobile_rec
  35. model_dir: null
  36. batch_size: 1