mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-31 00:08:08 +01:00
debugs
This commit is contained in:
parent
c27f99ab58
commit
815a823104
@ -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)
|
white_pixels = np.sum(thresholded_image == white_value)
|
||||||
total_pixels = thresholded_image.size
|
total_pixels = thresholded_image.size
|
||||||
white_pixel_percentage = (white_pixels / total_pixels) * 100
|
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
|
return white_pixel_percentage > white_percent
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user