Преглед изворни кода

perf: 禁用文档方向分类以提升处理速度

- 将 use_doc_orientation_classify 设置为 False
- 避免不必要的方向分类处理
- 减少处理时间
何文松 пре 2 дана
родитељ
комит
d4d6a9c30c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      paddleocr_wrapper.py

+ 1 - 1
paddleocr_wrapper.py

@@ -49,7 +49,7 @@ def main():
         pipeline = PaddleOCRVL(
         pipeline = PaddleOCRVL(
             device=args.device,
             device=args.device,
             use_doc_unwarping=False,
             use_doc_unwarping=False,
-            use_doc_orientation_classify=True,
+            use_doc_orientation_classify=False,
             use_chart_recognition=use_chart,
             use_chart_recognition=use_chart,
             use_layout_detection=use_layout,
             use_layout_detection=use_layout,
         )
         )