From c515c6c7f9d4d2887652fbe0307694d69c05dfca Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Fri, 29 Aug 2025 17:21:10 -0600 Subject: [PATCH] Refactor OCR configuration to nest document preprocessor settings - Moved `doc_preprocessor` settings under the `OCR` key in `ocr_config.yaml` for better organization. - Added `recognizer` settings to specify the language for the OCR recognizer, enhancing the configuration structure. --- paddlex/ocr_config.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/paddlex/ocr_config.yaml b/paddlex/ocr_config.yaml index 3a19888..b55f83b 100644 --- a/paddlex/ocr_config.yaml +++ b/paddlex/ocr_config.yaml @@ -1,6 +1,8 @@ pipeline_name: OCR OCR: lang: ru -doc_preprocessor: - use_doc_orientation_classify: true - use_doc_unwarping: true + doc_preprocessor: + use_doc_orientation_classify: true + use_doc_unwarping: true + recognizer: + lang: ru