Add contrast correction

This commit is contained in:
nono 2025-06-10 19:38:29 +02:00
parent 1735e468aa
commit 80b16f260e

View File

@ -177,7 +177,7 @@ class Printer(object):
def process_image(self, path):
brightness_factor = 1.5 # Used only if image is too dark
brightness_threshold = 150 # Brightness threshold (0255)
contrast_factor = 0.8 # Less than 1.0 = lower contrast
contrast_factor = 1.2 # Less than 1.0 = lower contrast
max_width = 575
max_height = 1000