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:
Type B
Type C
Type D
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