refactor: update detect method in camera classes to return dictionaries instead of lists

This commit is contained in:
2025-10-01 18:26:02 +02:00
parent 324ab2e016
commit dea17b8b26
3 changed files with 38 additions and 15 deletions

View File

@@ -5,6 +5,11 @@ class BaseCamera(ABC):
def __init__(self) -> None:
self.error_msg = None
@staticmethod
@abstractmethod
def detect() -> dict:
raise NotImplementedError
@abstractmethod
def connect(self, index: int | None = None) -> bool:
raise NotImplementedError