From 80b16f260e55823f0d4628e0cc8dec4706ebd933 Mon Sep 17 00:00:00 2001 From: nono Date: Tue, 10 Jun 2025 19:38:29 +0200 Subject: [PATCH] Add contrast correction --- src/printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer.py b/src/printer.py index cde2d32..e2e7095 100644 --- a/src/printer.py +++ b/src/printer.py @@ -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 (0–255) - 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