change resampling method
This commit is contained in:
parent
d6d42a03e6
commit
2f88d81fa5
@ -73,7 +73,7 @@ HEIGHT = 10
|
||||
def image_to_string(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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user