How kara320090/blurfing works
BlurFing is an Android app for reducing fingerprint exposure in photos. The main workflow is photo selection or capture, fingertip-region review and editing, protection processing, before/after comparison, and saving a protected copy. The app supports a legacy protection API and a separately selected experimental photo-AI path; the AI scripts provide candidate, quality-gating, and rendering stages. A separate Windows tool captures BioMini images. Edges follow excerpts or README statements; the experimental server implementation and several AI modules were not sampled, so their internal connections are omitted.
Main entry points: photo_region_pipeline_v1.py Photo region pipeline · MainActivity.kt App workflow · photo_learned_pad_pipeline_v1.py Learned pad pipeline · CaptureWorker.cs Capture worker
Components 27
Android app
- App workflow
android/app/src/main/java/com/blurfing/app/MainActivity.kt - Camera capture
android/app/src/main/java/com/blurfing/app/viewmodel/CameraCaptureViewModel.kt - Protection state
android/app/src/main/java/com/blurfing/app/viewmodel/BlurFingViewModel.kt - Region editing
android/app/src/main/java/com/blurfing/app/ui/screens/RegionEditorScreen.kt - Normalized regions
android/app/src/main/java/com/blurfing/app/model/NormalizedRegion.kt - Legacy API client
android/app/src/main/java/com/blurfing/app/repository/ApiProtectionRepository.kt - Photo AI client
android/app/src/main/java/com/blurfing/app/experimental/ExperimentalPhotoRepository.kt - Result comparison
android/app/src/main/java/com/blurfing/app/ui/screens/ComparisonScreen.kt
Protection service and AI
- Protection API
backend/main.py - Experimental photo API
backend - Photo region pipeline
ai/scripts/photo_region_pipeline_v1.py - Learned pad pipeline
ai/scripts/photo_learned_pad_pipeline_v1.py - Quality gate
ai/scripts/photo_quality_gate.py - Body candidates
ai/scripts/finger_body_distal_estimator.py - Candidate context
ai/scripts/photo_candidate_context_v1.py - Pad refinement tiles
ai/scripts/pad_refinement_tiles_v3.py - Refinement data contract
ai/scripts/pad_refinement_data_contract_v2.py - Coarse adapter
ai/scripts/photo_coarse_adapter_v2.py - Coarse renderer
ai/scripts/photo_coarse_renderer_adapter_v1.py - Ridge evidence
ai/scripts/ridge_evidence_frontend.py - Fingerprint protection
ai/scripts/protect_fingerprint.py
Sensor capture
- Capture interface
sensor/BlurFing.SensorCapture/MainForm.cs - Capture worker
sensor/BlurFing.SensorCapture/CaptureWorker.cs - BioMini SDK access
sensor/BlurFing.SensorCapture/NativeBioMini.cs - Captured frame
sensor/BlurFing.SensorCapture/CaptureFrame.cs
Other components
- Photo user
- Sensor operator
Connections 22
- Photo user → App workflow: uses
README.md - App workflow → Camera capture: starts capture
android/app/src/main/java/com/blurfing/app/MainActivity.kt - App workflow → Protection state: drives workflow
android/app/src/main/java/com/blurfing/app/MainActivity.kt - App workflow → Region editing: shows editor
android/app/src/main/java/com/blurfing/app/MainActivity.kt - Protection state → Legacy API client: requests protection
- Legacy API client → Protection API: POST /v1/protect
android/app/src/main/java/com/blurfing/app/repository/ApiProtectionRepository.kt - App workflow → Photo AI client: selects photo AI
android/app/src/main/java/com/blurfing/app/MainActivity.kt - Photo AI client → Experimental photo API: POST /v2/photo/protect
android/app/src/main/java/com/blurfing/app/experimental/ExperimentalPhotoRepository.kt - Protection API → Fingerprint protection: loads processor
- Experimental photo API → Photo region pipeline: uses AI pipeline
- Photo region pipeline → Body candidates: estimates regions
ai/scripts/photo_region_pipeline_v1.py - Photo region pipeline → Quality gate: checks quality
ai/scripts/photo_region_pipeline_v1.py - Photo region pipeline → Coarse adapter: adapts candidates
ai/scripts/photo_region_pipeline_v1.py - Photo region pipeline → Coarse renderer: renders regions
ai/scripts/photo_region_pipeline_v1.py - Photo region pipeline → Ridge evidence: routes evidence
ai/scripts/photo_region_pipeline_v1.py - Learned pad pipeline → Candidate context: associates context
ai/scripts/photo_learned_pad_pipeline_v1.py - Learned pad pipeline → Pad refinement tiles: uses refinement
ai/scripts/photo_learned_pad_pipeline_v1.py - Learned pad pipeline → Refinement data contract: checks contract
ai/scripts/photo_learned_pad_pipeline_v1.py - Sensor operator → Capture interface: operates
README.md - Capture interface → Capture worker: runs capture
sensor/BlurFing.SensorCapture/CaptureWorker.cs - Capture worker → BioMini SDK access: calls SDK
sensor/BlurFing.SensorCapture/CaptureWorker.cs - Capture worker → Captured frame: returns frame
sensor/BlurFing.SensorCapture/CaptureWorker.cs