Process CCPD picture filenames, translate car plate into readable Chinese, draw bounding boxes and make corresponding txt for YOLO.
CCPD paper: Towards End-to-End License Plate Detection and Recognition: A Large Dataset and Baseline
To download CCPD dataset...
- 2019 and 2020 Blue Plate and Renewable Energy Green Plate: https://github.com/detectRecog/CCPD
- 2021 Yellow Plate: https://github.com/xiaosongshine/CCPD_Plus
pip install opencv-python
Just run bbox.py
or ccpd2yolotxt.py
. Don't forget to replace the default CCPD directory with yours.
-
CCPD filename format:
面 积比-斜 度 -左上 右 下 坐 标-四个角坐标(右 下角 开始顺时针)-车牌-亮 度 -模糊 度 -
YOLO txt format:
0
中心 点 (归一化 宽)中心 点 (归一化 长)框 宽度(归一化 )框 长度(归一化 )
- It is not easy for opencv to draw Chinese characters on a picture. You could replace Chinese characters with pinyin if needed. PR is welcomed.