All Projects → rafariva → ANPR-Tensorflow

rafariva / ANPR-Tensorflow

Licence: other
Using neural networks to build an automatic number plate recognition system.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ANPR-Tensorflow

datatile
A library for managing, validating, summarizing, and visualizing data.
Stars: ✭ 419 (+1511.54%)
Mutual labels:  matplotlib
ipython-notebooks
A collection of Jupyter notebooks exploring different datasets.
Stars: ✭ 43 (+65.38%)
Mutual labels:  matplotlib
Machine-Learning-in-Python-Workshop
My workshop on machine learning using python language to implement different algorithms
Stars: ✭ 89 (+242.31%)
Mutual labels:  matplotlib
2021 course dev-rougier
NumFocus Academy - Matplotlib (beginner)
Stars: ✭ 54 (+107.69%)
Mutual labels:  matplotlib
astetik
Astetik takes away the pain from telling visual stories with data on Python
Stars: ✭ 15 (-42.31%)
Mutual labels:  matplotlib
mpl-interactions
Sliders to control matplotlib and other interactive goodies. Works in any interactive backend and even uses ipywidgets when in a Jupyter notebook
Stars: ✭ 62 (+138.46%)
Mutual labels:  matplotlib
Python-for-data-analysis
No description or website provided.
Stars: ✭ 18 (-30.77%)
Mutual labels:  matplotlib
Scipy-Bordeaux-2017
Course taught at the University of Bordeaux in the academic year 2017 for PhD students.
Stars: ✭ 16 (-38.46%)
Mutual labels:  matplotlib
reddit-hot-recorder
Records the activity (comments and karma) on the hot page of a Reddit sub and prepare an animated data visualisation.
Stars: ✭ 89 (+242.31%)
Mutual labels:  matplotlib
SciColorMaps
Custom .NET color maps (user-defined or imported from matplotlib) for scientific visualization
Stars: ✭ 26 (+0%)
Mutual labels:  matplotlib
SciPlot-PyQt
A Matplotlib-wrapped user-interface for creating and editing publication-ready images and plots
Stars: ✭ 32 (+23.08%)
Mutual labels:  matplotlib
samila
Generative Art Generator
Stars: ✭ 750 (+2784.62%)
Mutual labels:  matplotlib
slam-python
SLAM - Simultaneous localization and mapping using OpenCV and NumPy.
Stars: ✭ 80 (+207.69%)
Mutual labels:  matplotlib
joypy
Joyplots in Python with matplotlib & pandas 📈
Stars: ✭ 418 (+1507.69%)
Mutual labels:  matplotlib
Image-Classifier
Final Project of the Udacity AI Programming with Python Nanodegree
Stars: ✭ 63 (+142.31%)
Mutual labels:  matplotlib
expyplot
Matplotlib for Elixir
Stars: ✭ 27 (+3.85%)
Mutual labels:  matplotlib
DIP-In-Python
Play around with Pixel in Python
Stars: ✭ 42 (+61.54%)
Mutual labels:  matplotlib
matplotlib-haskell
Haskell bindings for Python's Matplotlib
Stars: ✭ 80 (+207.69%)
Mutual labels:  matplotlib
Exploratory Data Analysis Visualization Python
Data analysis and visualization with PyData ecosystem: Pandas, Matplotlib Numpy, and Seaborn
Stars: ✭ 78 (+200%)
Mutual labels:  matplotlib
ConvALPR
Reconocedor Automatico (real-time) de Patentes utilizando Redes Neuronales Convolucionales
Stars: ✭ 15 (-42.31%)
Mutual labels:  anpr

ANPR-TensorFlow

Using neural networks to build an automatic number plate recognition system. See mattherwearl's blog post for an explanation.

NOTE: This is an experimental project and is incomplete in a number of ways. This project is for be test it in Windows 10 64bits, and the code has been modify to generate licence plate patterns from Ecuador.

Dependencies:

Installations

Note: For install libraries use CMD terminal.

  1. Download Python 3.6.+ (last version of 64bits), and install it. Guide Video
  2. Installing numpy library (if not included)
py -m pip install numpy
  1. Installing OpenCV library
py -m pip install opencv-python
  1. Installing Pillow library
py -m pip install Pillow
  1. Installing MatPlotLib
py -m pip install matplotlib
  1. Installing TensorFlow (CPU or GPU) library
#*CPU version*
py -m pip install --upgrade tensorflow==1.8.0

or

#*GPU version*
py -m pip install --upgrade tensorflow-gpu==1.8.0

For GPU Nvidia, must install CUDA v9.0 and all its patchs, and then copy cuDNN v9.0 files into CUDA folder (for cuDNN follow this steps)

warning!! Other version of python, tensorflow, CUDA or cuDNN must cause problems

For python 3.7.* (last version of 64bits). Install tensorflow-gpu==2.0.0-rc0. For GPU Nvidia, must install CUDA v10.0 and all its patchs, and then copy cuDNN v10.0 files into CUDA folder (for cuDNN follow this steps)

Project

Create a folder name anpr and copy the following py files and folders:

  • bgs\ (backgrounds images)
  • fonts\ (ttf files)
  • test\ (generated licence plate, empty)
  • common.py (Common variables)
  • model.py (py dependencie)
  • gen.py (For generate test set images)
  • train.py (For train the model with generate images)
  • detect.py (For test result)

Using Networks

Usage is as follows:

  1. (optional but recommended) ./extractbgs.py SUN397.tar.gz: Extract ~3GB of background images from the SUN database into bgs/ (bgs/ must have only enumerate images in jpg format). The tar file (36GB) can be downloaded here. This step may take a while as it will extract 108,634 images.

  2. ./gen.py: Locate variable generate_amount and set the number you want (default 100), it will safe the test set images in test/ (test/must be empty). This step requires a .ttf files to be in the fonts/ directory.

  3. ./train.py: Train the model. A GPU is recommended for this step. It will take around 100,000 batches to converge. When you're satisfied that the network has learned enough press Ctrl+C once and the process will create a CPUweights.npz file and write the weights (ypu can run several time your training and it will keep learning from it stop).

  4. ./detect.py in.png CPUweights.npz out.png: Detect number plates in an image and give and output image. if get a tensorflow gpu error, you should uninstall it py -m pip unistall tensorflow-gpu

Reproduce: mattherwearl's deep-anpr

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].