Skip to content

πŸš— | Korean License Plate Generator with YOLO format labels

License

Notifications You must be signed in to change notification settings

yakhyo/korean-license-plate-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Type B

License plate type 2

Type C

License plate type 3

Type D

License plate type 4

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
    └── ...
  • Labels are prepared according to YOLO labelling format

To check the class distribution:

python distrib.py

Reference

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

Releases

No releases published

Packages

No packages published

Languages