coin-recog-demo/README.md

24 lines
745 B
Markdown
Raw Normal View History

# Coin Scan Demo
对照 CoinSnap 反编译:`detect.tflite`YOLOv5 硬币检测)+ `blur.tflite`(模糊度二分类)。
流程对齐 card-dex-demo但换成硬币圆框与双模型
拍照 / 选图 → **blur 清晰度检测****detect 目标框****圆形轮廓精修** → 圆形裁剪预览。
模型来自 CoinSnap APK `assets/`
| 模型 | 输入 | 输出 |
|------|------|------|
| `detect.tflite` | `[1,320,320,3]` NHWC, `/255`, letterbox | `[1,6300,6]` → cx,cy,w,h,obj,cls |
| `blur.tflite` | `[1,3,224,224]` NCHW, `/255`, 白底 letterbox | `[1,2]``[blur, clear]` |
## 运行
```bash
export PATH="$HOME/flutter/bin:$PATH"
cd /Users/a1518/Desktop/project/coin-dex-demo
flutter pub get
flutter run
```