Refactor PhotoTagger to enhance data handling by storing person information in separate fields for first name, last name, middle name, maiden name, and date of birth. Improve identification logic to ensure data integrity and streamline user experience. Update README to reflect changes in data storage and new features.

This commit is contained in:
tanyar09
2025-09-26 15:22:24 -04:00
parent 9f11a1a647
commit 8c9da7362b
2 changed files with 124 additions and 110 deletions
+10 -2
View File
@@ -129,7 +129,7 @@ python3 photo_tagger.py auto-match --auto --show-faces
**🎯 New GUI-Based Identification Features:**
- 🖼️ **Visual Face Display** - See individual face crops in the GUI
- 📝 **Separate Name Fields** - Dedicated text input fields for first name, last name, middle name, and maiden name
- 🎯 **Smart Name Parsing** - Supports "Last, First" format that gets properly parsed and stored
- 🎯 **Direct Field Storage** - Names are stored directly in separate fields for maximum reliability
- ☑️ **Compare with Similar Faces** - Compare current face with similar unidentified faces
- 🎨 **Modern Interface** - Clean, intuitive GUI with buttons and input fields
- 💾 **Window Size Memory** - Remembers your preferred window size
@@ -142,6 +142,7 @@ python3 photo_tagger.py auto-match --auto --show-faces
- 💾 **Quit Confirmation** - Saves pending identifications when closing the application
-**Performance Optimized** - Pre-fetched data for faster similar faces display
- 🎯 **Clean Database Storage** - Names are stored as separate first_name and last_name fields without commas
- 🔧 **Improved Data Handling** - Fixed field restoration and quit confirmation logic for better reliability
**🎯 New Auto-Match GUI Features:**
- 📊 **Person-Centric View** - Shows matched person on left, all their unidentified faces on right
@@ -626,7 +627,14 @@ This is now a minimal, focused tool. Key principles:
## 🆕 Recent Improvements (Latest Version)
### 🔄 Field Navigation & Preservation Fixes (NEW!)
### 🔧 Data Storage & Reliability Improvements (NEW!)
-**Eliminated Redundant Storage** - Removed unnecessary combined name field for cleaner data structure
-**Direct Field Access** - Names stored and accessed directly without parsing/combining logic
-**Fixed Quit Confirmation** - Proper detection of pending identifications when quitting
-**Improved Error Handling** - Better type consistency prevents runtime errors
-**Enhanced Performance** - Eliminated string manipulation overhead for faster operations
### 🔄 Field Navigation & Preservation Fixes
-**Fixed Name Field Confusion** - First and last names now stay in correct fields during navigation
-**Enhanced Data Storage** - Individual field tracking prevents name swapping issues
-**Date of Birth Preservation** - Date of birth now preserved even when entered alone (without names)