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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user