From 815a823104d9ff84291ea8e4e234287a89be7f72 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 12 May 2023 20:55:18 +0100 Subject: [PATCH] debugs --- scripts/detect-blank-pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/detect-blank-pages.py b/scripts/detect-blank-pages.py index 69b7f9d5..39a065cd 100644 --- a/scripts/detect-blank-pages.py +++ b/scripts/detect-blank-pages.py @@ -19,7 +19,7 @@ def is_blank_image(image_path, threshold=10, white_percent=99, white_value=255, white_pixels = np.sum(thresholded_image == white_value) total_pixels = thresholded_image.size white_pixel_percentage = (white_pixels / total_pixels) * 100 - + print(f"Page has white pixel percent of {white_pixel_percentage}") return white_pixel_percentage > white_percent