change resampling method

This commit is contained in:
Owl 2025-02-18 18:05:07 +07:00
parent d6d42a03e6
commit 2f88d81fa5

View File

@ -73,7 +73,7 @@ HEIGHT = 10
def image_to_string(image_file): def image_to_string(image_file):
img = Image.open(image_file) img = Image.open(image_file)
img = img.resize((WIDTH, HEIGHT), Image.Resampling.LANCZOS) img = img.resize((WIDTH, HEIGHT), Image.Resampling.NEAREST)
img = img.convert("1") img = img.convert("1")