1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Revert "increase color threshold from 20 to 50 (#1075)" (#1079)

This reverts commit a1f4e040ba.
This commit is contained in:
Alex Xu
2025-09-08 20:16:24 -07:00
committed by GitHub
parent a1f4e040ba
commit bc92c2dd85

View File

@@ -294,7 +294,7 @@ class ComicPage:
cb_spread = cb_nonzero[-1] - cb_nonzero[0] if len(cb_nonzero) else 0
cr_spread = cr_nonzero[-1] - cr_nonzero[0] if len(cr_nonzero) else 0
SPREAD_THRESHOLD = 50
SPREAD_THRESHOLD=20
if cb_spread < SPREAD_THRESHOLD and cr_spread < SPREAD_THRESHOLD:
return False
else: