mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
split image in half for better color detection comment
This commit is contained in:
@@ -293,6 +293,7 @@ class ComicPage:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# cut off pixels from both ends of the histogram to remove jpg compression artifacts
|
# 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)):
|
def histograms_cutoff(self, cb, cr, cutoff=(2, 2)):
|
||||||
cb_hist = cb.histogram()
|
cb_hist = cb.histogram()
|
||||||
cr_hist = cr.histogram()
|
cr_hist = cr.histogram()
|
||||||
|
|||||||
Reference in New Issue
Block a user