From 1c3c37bce0fcd5c58ddb835778239c658db0b0dd Mon Sep 17 00:00:00 2001 From: egg Date: Thu, 4 Dec 2025 07:43:19 +0800 Subject: [PATCH] test: add covering images to preprocessing test output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates test script to display covering images count in quality report. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/run_preprocessing_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run_preprocessing_tests.py b/scripts/run_preprocessing_tests.py index 260be53..8d58942 100644 --- a/scripts/run_preprocessing_tests.py +++ b/scripts/run_preprocessing_tests.py @@ -65,7 +65,8 @@ def test_preprocessing_pipeline(): print(f"\n[Quality Report]") print(f" Total pages: {report['total_pages']}") print(f" Pages sanitized: {report['preprocessing_stats']['pages_sanitized']}") - print(f" Whiteout regions detected: {report['preprocessing_stats']['total_whiteout_regions']}") + print(f" Whiteout regions (vector): {report['preprocessing_stats']['total_whiteout_regions']}") + print(f" Covering images (black/white): {report['preprocessing_stats'].get('total_covering_images', 0)}") print(f" Average garble rate: {report['average_garble_rate']:.2%}") print(f" Needs OCR fallback: {report['needs_ocr_fallback']}")