From 5813f914fc1541c90a940443828a4b833ddd4150 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 20 Oct 2025 19:29:54 -0700 Subject: [PATCH] split image in half for better color detection comment --- kindlecomicconverter/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index f0fc6e6..0eda328 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -293,6 +293,7 @@ class ComicPage: return False # cut off pixels from both ends of the histogram to remove jpg compression artifacts + # for better accuracy, you could split the image in half and analyze each half separately def histograms_cutoff(self, cb, cr, cutoff=(2, 2)): cb_hist = cb.histogram() cr_hist = cr.histogram()