Commit bcd1c3d8 authored by Taddeus Kroes's avatar Taddeus Kroes

Merge branch 'master' of github.com:taddeus/licenseplates

parents 06246989 b695b680
Summary of project:
This code is an implementation of a classifier for License Plate
Recognition, using Local Binary Patterns as features for a Support Vector
Machine.
A number of scripts are provided to execute tests with this code, and to
see how well the code performs, both when considering accuracy and speed.
There is also a script that automises the search for proper parameters for
the SVM.
In the docs folder, a report can be found with a more extensive description
of the theory, the implementation and the results.
The images folder contains a sorted dataset of characters, cut out from
real life images of license plates, provided by Parkingware Schiphol.
Authors:
Taddeüs Kroes
Jayke Meijer
Fabiën Tesselaar
Richard Torenvliet
Gijs van der Voort.
Date:
December 2011
Dependencies:
matplotlib
numpy
scipy
python-libsvm
This diff is collapsed.
......@@ -2,8 +2,10 @@ from GrayscaleImage import GrayscaleImage
from scipy.ndimage import gaussian_filter
class GaussianFilter:
"""This class can apply a Gaussian blur on an image."""
def __init__(self, scale):
"""Create a GaussianFilter object with a given scale."""
self.scale = scale
def get_filtered_copy(self, image):
......@@ -12,12 +14,15 @@ class GaussianFilter:
return GrayscaleImage(None, image)
def filter(self, image):
"""Apply a Gaussian blur on the image data."""
image.data = gaussian_filter(image.data, self.scale)
def get_scale(self):
return self.scale
"""Return the scale of the Gaussian kernel."""
return self.scale
def set_scale(self, scale):
"""Set the scale of the Gaussian kernel."""
self.scale = float(scale)
scale = property(get_scale, set_scale)
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