coin-recog-demo/README.md
a1518 7cee2ae28f Initial commit: Coin scan demo with blur detection and coin contour cropping
- YOLOv5 TFLite coin detection with NMS
- Blur classifier for image quality gating
- Circular contour refinement and cropping
- Camera capture and gallery pick

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-13 20:35:28 -07:00

24 lines
745 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
```