Skip to content

Automated LP is a simple tool helps you generate Persian vehicle number pates in order to train your CNN.

Notifications You must be signed in to change notification settings

kntu-utils/license-plate-generator

 
 

Repository files navigation

Persian Licence Plate Generator

This repository helps you generate persian licence plates. You're almost done with this part, training your own CNN would be the next step.

Incentives

Generated sample:
Sample

For the sake of ease, generated licence plates come with their annotations:
Annotation sample

Generated sample with perspective transformations:
Annotation sample

On top of all that, it automatically generates associated xml files in pascal voc format:
Sample

How to Use

*Note: if you have trouble installing jsonnet on windows 
use win_conf.json instead and remove jsonnet dependencies
(For installing jsonnet on windows run: "pip install jsonnet-binary")
  1. Create your virtual environment: (recommended)
    $ python -m venv venv
    $ source venv/bin/activate (or .\venv\Scripts\activate.bat for windows)

  2. Got all requirements installed:
    $ pip3 install --upgrade -r requirements.txt

  3. Tweak configuration file: (optional)

    • project_configurations.jsonnet
  4. Out-of-the-box data generation:

    • With default parameters:
      $ python3 main.py
    • Override config parameters:
      $ python3 main.py --count 10000
      $ python3 main.py --no-noise
      $ python3 main.py --no-dirt
      $ python3 main.py --outdir 'output' (doesn't already exist)
      $ python3 main.py --no-transform
      $ python3 main.py --no-fill
      $ python3 main.py --package 8000

About

Automated LP is a simple tool helps you generate Persian vehicle number pates in order to train your CNN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.5%
  • Jsonnet 16.5%