Go to file
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
android Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
assets/ml Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
ios Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
lib Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
test Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
.gitignore Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
.metadata Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
analysis_options.yaml Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
pubspec.lock Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
pubspec.yaml Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00
README.md Initial commit: Coin scan demo with blur detection and coin contour cropping 2026-07-13 20:35:28 -07:00

Coin Scan Demo

对照 CoinSnap 反编译:detect.tfliteYOLOv5 硬币检测)+ 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]

运行

export PATH="$HOME/flutter/bin:$PATH"
cd /Users/a1518/Desktop/project/coin-dex-demo
flutter pub get
flutter run