From ba7f4336a52cc9932dc2cda6d1cd8c76b61e28d1 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 25 Oct 2025 23:16:52 -0700 Subject: [PATCH] add threshold comment --- kindlecomicconverter/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 7dccce9..efe0f4d 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -366,6 +366,7 @@ class ComicPage: cb_hist_original = cb.histogram() cr_hist_original = cr.histogram() + # you can increase 22 but don't touch 10 and 3 thresholds for cutoff, diff_threshold in [((0, 0), 22), ((.2, .2), 10), ((3, 3), 3)]: done, decision = self.color_precision(cb_hist_original, cr_hist_original, cutoff, diff_threshold) if done: