feat: implement camera management with GPhotoCamera and CameraManager classes

This commit is contained in:
2025-09-21 08:38:26 +02:00
parent 2187536c7d
commit 508930ae39
5 changed files with 177 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
from abc import ABC, abstractmethod
from PySide6.QtCore import Signal
class BaseCamera(ABC):
def __init__(self) -> None:
self.error_msg = None
@abstractmethod
def connect(self) -> bool:
raise NotImplementedError
@abstractmethod
def disconnect(self) -> None:
raise NotImplementedError
@abstractmethod
def get_frame(self):
raise NotImplementedError
def get_error_msg(self):
return str(self.error_msg)