Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
licenseplates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Taddeüs Kroes
licenseplates
Commits
8acbc023
Commit
8acbc023
authored
13 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Plain Diff
Fixed merge conflicts.
parents
093ff345
dd5d084a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/plan.tex
+7
-3
7 additions, 3 deletions
docs/plan.tex
src/crop.py
+36
-0
36 additions, 0 deletions
src/crop.py
with
43 additions
and
3 deletions
docs/plan.tex
+
7
−
3
View file @
8acbc023
...
...
@@ -53,7 +53,7 @@ In short our program must be able to do the following:
\section
{
Solution
}
Now that
we know
the problem
we can start with
stating
our
solution. This will
Now that the problem
is defined, the next step is
stating
a
solution. This will
come in a few steps as well.
\subsection
{
Transformation
}
...
...
@@ -80,7 +80,11 @@ very robust when dealing with noisy images.
Because we are already given the locations of the characters, we only need to
transform those locations using the same perspective transformation used to
create a front facing license plate.
create a front facing license plate. The next step is to transform the
characters to a normalized manner. The size of the letter W is used as a
standard to normalize the width of all the characters, because W is the widest
character of the alphabet. We plan to also normalize the height of characters,
the best manner for this is still to be determined.
\begin{enumerate}
\item
Crop the image in such a way that the character precisely fits the
...
...
@@ -102,7 +106,7 @@ which describes the distribution of line directions in the image. Since letters
on a license plate are mainly build up of straight lines and simple curves, it
should theoretically be possible to identify these using Local Binary Patterns.
This will actually be the first thing
we
implement, since it is not known if it
This will actually be the first thing
to
implement, since it is not known if it
will give the desired results. Our first goal is therefore a proof of concept
that using LBP's is a good way to determine which character we are dealing
with.
...
...
This diff is collapsed.
Click to expand it.
src/crop.py
0 → 100644
+
36
−
0
View file @
8acbc023
from
PIL
import
Image
from
Pylab
import
*
from
LBP
import
domain_iterator
THRESHOLD
=
0.5
im
=
Image
.
open
(
'
../.jpg
'
)
im
=
Image
.
convert
(
'
L
'
,
im
)
outer_bounds
=
get_outer_bounds
()
im
.
crop
(
outer_bounds
)
imshow
(
im
)
show
()
def
get_outer_bound
():
min_x
=
len
(
im
[
0
])
max_x
=
0
min_y
=
len
(
im
)
max_y
=
0
for
y
in
xrange
(
len
(
im
)):
for
x
in
xrange
(
len
(
im
[
0
])):
if
im
[
y
,
x
]
>
THRESHOLD
:
if
x
<
min_x
:
min_x
=
x
if
y
<
min_y
:
min_y
=
y
if
x
>
max_x
:
max_x
=
x
if
y
>
max_y
:
max_y
=
y
return
(
min_x
,
min_y
,
max_x
,
max_y
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment