Commit 21c6a08e authored by Taddeüs Kroes's avatar Taddeüs Kroes

Removed a bunch of unused imports.

parent d98cdc83
import traceback, os.path
import traceback
class Error:
def __init__(self, message=None):
......
from GrayscaleImage import GrayscaleImage
from scipy.ndimage import convolve1d
from pylab import ceil, zeros, pi, e, exp, sqrt, array
from pylab import ceil, zeros, pi, exp, sqrt, array
class GaussianFilter:
......
from copy import deepcopy
from Rectangle import Rectangle
from GrayscaleImage import GrayscaleImage
class LetterCropper:
......
from pylab import array, zeros, inv, dot, svd, shape, floor
from pylab import array, zeros, inv, dot, svd, floor
from xml.dom.minidom import parse
from Error import Error
from Point import Point
from Character import Character
from GrayscaleImage import GrayscaleImage
from NormalizedCharacterImage import NormalizedCharacterImage
'''
Creates a license plate object based on an XML file. The image should be
placed in a folder 'images' the xml file in a folder 'xml'
"""
Creates a license plate object based on an XML file. The image should be
placed in a folder 'images' the xml file in a folder 'xml'
TODO: perhaps remove non required XML lookups
'''
TODO: perhaps remove non required XML lookups
"""
class LicensePlate:
def __init__(self, folder_nr, file_nr):
......
from Histogram import Histogram
from numpy import zeros, byte
from math import ceil
class LocalBinaryPatternizer:
......
from GrayscaleImage import GrayscaleImage
from LocalBinaryPatternizer import LocalBinaryPatternizer
from LetterCropper import LetterCropper
from matplotlib.pyplot import imshow, subplot, show, axis, bar
from numpy import arange
image = GrayscaleImage("../images/test.png")
......
from GrayscaleImage import GrayscaleImage
from NormalizedCharacterImage import NormalizedCharacterImage
from LetterCropper import LetterCropper
image = GrayscaleImage("../images/test10.png")
normalized_character_image = NormalizedCharacterImage(image)
......
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