feat: Implement empirical confidence calibration for face matching

This commit introduces a new confidence calibration system that converts DeepFace distance values into actual match probabilities, addressing previous misleading confidence percentages. Key changes include the addition of calibration methods in `FaceProcessor`, updates to the `IdentifyPanel` and `AutoMatchPanel` to utilize calibrated confidence, and new configuration settings in `config.py`. The README has been updated to document these enhancements, ensuring users see more realistic match probabilities throughout the application.
This commit is contained in:
tanyar09
2025-10-27 13:31:19 -04:00
parent f44cb8b777
commit d6b1e85998
9 changed files with 271 additions and 49 deletions
-21
View File
@@ -277,27 +277,6 @@ PunimTag Development Team
- **Similarity**: Cosine similarity (industry standard for deep learning embeddings)
- **Accuracy**: Significantly improved over previous face_recognition library
---
## 🔧 Recent Updates
### Face Orientation Fix (Latest)
**Fixed face orientation issues in the identify functionality**
-**Resolved rotated face display**: Faces now show in correct orientation instead of being rotated
-**Fixed false positive detection**: Eliminated detection of clothes/objects as faces for rotated images
-**Improved face extraction**: Fixed blank face crops by properly handling EXIF orientation data
-**Comprehensive EXIF support**: Full support for all 8 EXIF orientation values (1-8)
-**Consistent processing**: Face detection and extraction now use consistent orientation handling
**Technical Details:**
- Applied EXIF orientation correction before face detection to prevent false positives
- Implemented proper coordinate handling for all orientation types
- Enhanced face extraction logic to work with corrected images
- Maintained backward compatibility with existing face data
---
### Migration Documentation
- [Phase 1: Database Schema](PHASE1_COMPLETE.md) - Database updates with DeepFace columns
- [Phase 2: Configuration](PHASE2_COMPLETE.md) - Configuration settings for DeepFace