feat: Enhance face processing with EXIF orientation handling and database updates
This commit introduces a comprehensive EXIF orientation handling system to improve face processing accuracy. Key changes include the addition of an `exif_orientation` field in the database schema, updates to the `FaceProcessor` class for applying orientation corrections before face detection, and the implementation of a new `EXIFOrientationHandler` utility for managing image orientation. The README has been updated to document these enhancements, including recent fixes for face orientation issues and improved face extraction logic. Additionally, tests for EXIF orientation handling have been added to ensure functionality and reliability.
This commit is contained in:
@@ -277,6 +277,27 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user