korean-license-plate-generator

Korean License Plate Generator

Download and Run. It generates images with YOLO format labels

Run

git clone https://github.com/yakhyo/Korean-License-Plate-Generate.git
python generate.py # to generate passanger car license plate images
python generate_truck.py # to generate truck license plate images

assets folder:

assets
├── chars
    ├── a.jpg
    ├── ba.jpg
    ├── bae.jpg
    └── ...
├── chars_truck
    ├── a.jpg
    ├── ba.jpg
    ├── bae.jpg
    └── ...
├── nums
    ├── 0.jpg
    ├── 1.jpg
    ├── 2.jpg
    └── ...
├── region1
    ├── 001_bu.jpg
    ├── 002_chung.jpg
    ├── 003_chung.jpg
    └── ...
├── region2
    ├── 001_san.jpg
    ├── 002_buk.jpg
    ├── 003_nam.jpg
    └── ...
└── plates
    ├── type_a
        ├── plate_1jpg
        ├── plate_2.jpg
        ├── plate_3.jpg
        └── ... 
    └── type_b
        ├── plate_1jpg
        ├── plate_2.jpg
        ├── plate_3.jpg
        └── ...
    └── type_c
        ├── plate_1jpg
        ├── plate_2.jpg
        ├── plate_3.jpg
        └── ...
    └── type_d
        ├── plate_1jpg
        ├── plate_2.jpg
        ├── plate_3.jpg
        └── ...
└── names.txt

This code generates two types of passenger car and turck license plate images:

Type A:

![License plate type 1](/korean-license-plate-generator/sample/image_a_0.jpg)

Type B

![License plate type 2](/korean-license-plate-generator/sample/image_b_0.jpg)

Type C

![License plate type 3](/korean-license-plate-generator/sample/image_ax_4.jpg)

Type D

![License plate type 4](/korean-license-plate-generator/sample/image_dx_30.jpg)

names.txt consists from numbers and letter combinations:

0 1 2 3 4 5 6 7 8 9 ga na da ra ma ba sa a ja ha geo neo 
deo reo meo beo seo eo jeo heo go no do ro mo bo so o jo 
ho gu nu du ru mu bu su u ju bae gwang nam je cheon dae
gang se gi gyeong san jong buk won ul chung in jeon

After running the generate.py file, result folder will appear:

result
├── images
    ├── image_a_0.jpg
    ├── image_a_1.jpg
    ├── image_a_2.jpg
    └── ...
└── labels
    ├── image_a_0.txt
    ├── image_a_1.txt
    ├── image_a_2.txt
    └── ...

To check the class distribution:

python distrib.py

Reference

  1. https://github.com/qjadud1994/Korean-license-plate-Generator