Final repository

This commit is contained in:
2025-08-26 13:07:59 -07:00
parent 4732549791
commit 6d9a27f1e8
38 changed files with 6600 additions and 1792 deletions

View File

@@ -73,6 +73,15 @@ class VideoController(QObject):
# Debug counter for monitoring frame processing
self.debug_counter = 0
def on_model_switched(self, device):
"""Handle device switch notification from model manager."""
print(f"[VIDEO CONTROLLER] Device switched to: {device}")
# Update model manager config if needed
if self.model_manager and hasattr(self.model_manager, 'config'):
self.model_manager.config["detection"]["device"] = device
print(f"[VIDEO CONTROLLER] Updated model manager device to: {device}")
def set_source(self, source):
"""Set video source (file path, camera index, or URL)"""
print(f"DEBUG: VideoController.set_source called with: {source} (type: {type(source)})")