Commit 2f9d1995 authored by Taddeus Kroes's avatar Taddeus Kroes

Merged conflicts.

parents cbbcc441 885d8f4b
...@@ -224,10 +224,9 @@ reader will only get results from this version. ...@@ -224,10 +224,9 @@ reader will only get results from this version.
Now we are only interested in the individual characters so we can skip the Now we are only interested in the individual characters so we can skip the
location of the entire license plate. Each character has location of the entire license plate. Each character has
a single character value, indicating what someone thought what the letter or a single character value, indicating what someone thought what the letter or
digit was and four coordinates to create a bounding box. To make things not to digit was and four coordinates to create a bounding box. If less then four points have been set the character will not be saved. Else, to make things not to
complicated a Character class and Point class are used. They complicated, a Character class is used. It acts as an associative list, but it gives some extra freedom when using the
act pretty much as associative lists, but it gives extra freedom on using the data.
data. If less then four points have been set the character will not be saved.
When four points have been gathered the data from the actual image is being When four points have been gathered the data from the actual image is being
requested. For each corner a small margin is added (around 3 pixels) so that no requested. For each corner a small margin is added (around 3 pixels) so that no
......
class LicensePlate: class LicensePlate:
def __init__(self, country=None, characters=None): def __init__(self, country=None, characters=None):
self.country = country self.country = country
self.characters = characters self.characters = characters
\ No newline at end of file
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def to_tuple(self):
return self.x, self.y
def __str__(self):
return str(self.x) + " " + str(self.y)
\ No newline at end of file
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