Skip to content
Snippets Groups Projects
Commit 38415fb9 authored by Richard Torenvliet's avatar Richard Torenvliet
Browse files

Started on normalizing characters class

parent c43363a7
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment