File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
lib/idp_common_pkg/idp_common/ocr Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -1068,15 +1068,6 @@ def _process_single_page_textract(
10681068 # Use the extracted image directly for OCR (no additional resize needed)
10691069 ocr_img_bytes = img_bytes
10701070
1071- # Apply preprocessing if enabled (only for OCR processing, not saved image)
1072- if self .preprocessing_config and self .preprocessing_config .get ("enabled" ):
1073- from idp_common .image import apply_adaptive_binarization
1074-
1075- ocr_img_bytes = apply_adaptive_binarization (ocr_img_bytes )
1076- logger .debug (
1077- f"Applied adaptive binarization preprocessing for OCR processing (page { page_id } )"
1078- )
1079-
10801071 # Apply preprocessing if enabled (only for OCR processing, not saved image)
10811072 if self .preprocessing_config and self .preprocessing_config .get ("enabled" ):
10821073 from idp_common .image import apply_adaptive_binarization
You can’t perform that action at this time.
0 commit comments