Commit 38415fb9 authored by Richard Torenvliet's avatar Richard Torenvliet

Started on normalizing characters class

parent c43363a7
from PIL import Image
class NormalizedImage:
DEFAULT_SIZE = (100, 200)
def __init__(self, image, size):
self.letter = image
if size:
self.size = size
else:
self.size = self.DEFAULT_SIZE
self.add_padding()
self.resize()
def add_padding(self):
pass
def resize(self):
return self.letter.resize(self.size, Image.NEAREST)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment