Add Search GUI for enhanced photo searching capabilities
This commit introduces the SearchGUI class, allowing users to search for photos by name through a user-friendly interface. The new functionality includes options to view search results, open photo locations, and display relevant information about matched individuals. The PhotoTagger class is updated to integrate this feature, and the README is revised to include usage instructions for the new search-gui command. Additionally, the search_faces method in SearchStats is enhanced to return detailed results, improving the overall search experience.
This commit is contained in:
@@ -351,8 +351,18 @@ python3 photo_tagger.py search "John"
|
||||
|
||||
# Find photos with partial name match
|
||||
python3 photo_tagger.py search "Joh"
|
||||
|
||||
# Open the Search GUI
|
||||
python3 photo_tagger.py search-gui
|
||||
```
|
||||
|
||||
Search GUI features:
|
||||
- Person column shows the matched person's full name
|
||||
- 📁 column: click to open the file's folder (tooltip: "Open file location")
|
||||
- 📷 column: click to open the photo (tooltip: "Open photo")
|
||||
- Path column shows the absolute photo path
|
||||
- Press Enter in the name field to trigger search
|
||||
|
||||
### Statistics
|
||||
```bash
|
||||
# View database statistics
|
||||
@@ -914,6 +924,7 @@ python3 photo_tagger.py scan ~/Pictures --recursive
|
||||
python3 photo_tagger.py process --limit 50
|
||||
python3 photo_tagger.py identify --show-faces --batch 10 # Opens GUI
|
||||
python3 photo_tagger.py auto-match --show-faces # Opens GUI
|
||||
python3 photo_tagger.py search-gui # Opens Search GUI
|
||||
python3 photo_tagger.py modifyidentified # Opens GUI to view/modify
|
||||
python3 photo_tagger.py tag-manager # Opens GUI for tag management
|
||||
python3 photo_tagger.py stats
|
||||
|
||||
Reference in New Issue
Block a user