Add ModifyIdentifiedGUI for face modification in PhotoTagger
This commit introduces the ModifyIdentifiedGUI class, enabling users to view and modify identified faces within the PhotoTagger application. The new GUI provides a comprehensive interface for searching, displaying, and managing faces associated with individuals, allowing for easy unmatching and editing of person details. The PhotoTagger class is updated to integrate this functionality, streamlining the face modification process. Additionally, relevant documentation has been updated to reflect these changes.
This commit is contained in:
parent
b75e12816c
commit
ac546a09e0
1074
modify_identified_gui.py
Normal file
1074
modify_identified_gui.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -23,6 +23,7 @@ from search_stats import SearchStats
|
||||
from gui_core import GUICore
|
||||
from identify_gui import IdentifyGUI
|
||||
from auto_match_gui import AutoMatchGUI
|
||||
from modify_identified_gui import ModifyIdentifiedGUI
|
||||
|
||||
|
||||
class PhotoTagger:
|
||||
@ -43,6 +44,7 @@ class PhotoTagger:
|
||||
self.gui_core = GUICore()
|
||||
self.identify_gui = IdentifyGUI(self.db, self.face_processor, verbose)
|
||||
self.auto_match_gui = AutoMatchGUI(self.db, self.face_processor, verbose)
|
||||
self.modify_identified_gui = ModifyIdentifiedGUI(self.db, self.face_processor, verbose)
|
||||
|
||||
# Legacy compatibility - expose some methods directly
|
||||
self._db_connection = None
|
||||
@ -183,9 +185,7 @@ class PhotoTagger:
|
||||
return 0
|
||||
|
||||
def modifyidentified(self) -> int:
|
||||
"""Modify identified faces GUI"""
|
||||
print("⚠️ Face modification GUI not yet implemented in refactored version")
|
||||
return 0
|
||||
return self.modify_identified_gui.modifyidentified()
|
||||
|
||||
def _setup_window_size_saving(self, root, config_file="gui_config.json"):
|
||||
"""Set up window size saving functionality (legacy compatibility)"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user