Commit 79884e9a authored by Taddeus Kroes's avatar Taddeus Kroes

Removed use of LetterCropper.

parent fb2f6bea
from copy import deepcopy
from GrayscaleImage import GrayscaleImage
from LetterCropper import LetterCropper
from GaussianFilter import GaussianFilter
class NormalizedCharacterImage(GrayscaleImage):
......@@ -16,9 +15,6 @@ class NormalizedCharacterImage(GrayscaleImage):
self.increase_contrast()
#self.crop_threshold = crop_threshold
#self.crop_to_letter()
self.height = height
self.resize()
......@@ -29,10 +25,6 @@ class NormalizedCharacterImage(GrayscaleImage):
def gaussian_filter(self):
GaussianFilter(self.blur).filter(self)
def crop_to_letter(self):
cropper = LetterCropper(0.9)
cropper.crop_to_letter(self)
def resize(self):
"""Resize the image to a fixed height."""
if self.height == None:
......
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