1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

split image in half for better color detection comment

This commit is contained in:
Alex Xu
2025-10-20 19:29:54 -07:00
committed by GitHub
parent 530ae410d4
commit 5813f914fc

View File

@@ -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()