Final repository
This commit is contained in:
@@ -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)})")
|
||||
|
||||
Reference in New Issue
Block a user