- Add README.md to all 16 dataset directories with script references - Centralize generation scripts under scripts/ with full README - Update .gitignore to cover all data directories, keep only metadata - Remove redundant CCPD/.gitignore (parent covers same rules) - Remove stale scripts/test/ (254MB pipeline residue) - Fix label parser reference: scripts are authoritative source of truth
70 lines
1.8 KiB
Markdown
70 lines
1.8 KiB
Markdown
# CCPD_19K_EXP_CUT — 拓展裁剪 + 角点重映射
|
|
|
|
> **以脚本为准**:生成逻辑以 `ICE_Dataset/scripts/build_ccpd_19k_exp_cut.py` 为准。
|
|
|
|
由 CCPD_19K 经 YOLOv5t 推理 → bbox 拓展 → 裁剪 + 角点重映射生成。
|
|
|
|
## 处理流程
|
|
|
|
```
|
|
CCPD_19K (19,000 张)
|
|
→ YOLOv5t best.pt 推理 (imgsz=352, conf=0.25)
|
|
→ bbox 拓展:
|
|
常规: 12% (w ≥ 67 且 h ≥ 51)
|
|
小车牌: 18% (w < 67 或 h < 51)
|
|
→ 裁剪
|
|
→ 角点重映射写入文件名
|
|
→ CCPD_19K_EXP_CUT
|
|
```
|
|
|
|
## 目录结构
|
|
|
|
```
|
|
CCPD_19K_EXP_CUT/
|
|
├── train/ # 16,999 张
|
|
│ ├── blue/ # 4,435 张
|
|
│ ├── green/ # 4,486 张
|
|
│ ├── police/ # 897 张
|
|
│ ├── army/ # 898 张
|
|
│ ├── gangao/ # 899 张
|
|
│ ├── shiguan_old/ # 898 张
|
|
│ ├── shiguan_new/ # 897 张
|
|
│ ├── lingguan_old/ # 897 张
|
|
│ ├── lingguan_new/ # 897 张
|
|
│ ├── coach/ # 897 张
|
|
│ └── new_energy/ # 898 张
|
|
├── test/ # 1,888 张
|
|
│ └── ... (同上 11 类)
|
|
└── README.md
|
|
```
|
|
|
|
## 统计
|
|
|
|
| 指标 | 数值 |
|
|
|------|------|
|
|
| 源图 | 19,000 |
|
|
| 裁剪成功 | 18,887 (99.4%) |
|
|
| 角点重映射 | 18,870 (99.3%) |
|
|
| 跳过 | 113 (0.6%) |
|
|
| - 漏检 | 71 |
|
|
| - 多框 | 42 |
|
|
|
|
## 文件名角点格式
|
|
|
|
裁剪后 CCPD 文件名中的角点段已更新为裁剪坐标系像素坐标:
|
|
|
|
```
|
|
原: ...-324&452_241&449_242&420_325&423-...
|
|
新: ...-99&38_16&35_17&6_100&9-...
|
|
```
|
|
|
|
格式: `-C1X&C1Y_C2X&C2Y_C3X&C3Y_C4X&C4Y-` (像素坐标, 整数)
|
|
|
|
## 生成脚本
|
|
|
|
```bash
|
|
cd ICE_Dataset/CCPD_19K_EXP_CUT
|
|
python build_ccpd_19k_exp_cut.py --dry-run # 预览
|
|
python build_ccpd_19k_exp_cut.py --full # 全量
|
|
```
|