Skip to content

Commit 07a899f

Browse files
committed
Fixing unit test related to OCR service?? Not sure how anyone elses's build pipelines have been working with this in there
1 parent a5af049 commit 07a899f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/idp_common_pkg/idp_common/ocr/service.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)