Capture_array can now use "full" stream

This commit is contained in:
jaknapper 2025-05-01 16:07:05 +01:00 committed by Julian Stirling
parent 9d1385231d
commit 8bc0573ab1
3 changed files with 9 additions and 60 deletions

View file

@ -44,7 +44,7 @@ class CameraProtocol(Protocol):
def capture_array(
self,
stream_name: Literal["main", "lores", "raw"] = "main",
stream_name: Literal["main", "lores", "raw", "full"] = "main",
) -> NDArray: ...
def capture_jpeg(
@ -77,12 +77,6 @@ class CameraProtocol(Protocol):
"""Acquire one image from the preview stream and return its size"""
...
def capture_highres_array(
self,
):
...
class BaseCamera(Thing):
"""A Thing representing a camera
@ -171,16 +165,10 @@ class CameraStub(BaseCamera):
@thing_action
def capture_array(
self,
stream_name: Literal["main", "lores", "raw"] = "main",
stream_name: Literal["main", "lores", "raw", "full"] = "main",
) -> NDArray:
raise NotImplementedError("Cameras must not inherit from CameraStub")
@thing_action
def capture_highres_array(
self,
):
raise NotImplementedError("Cameras must not inherit from CameraStub")
@thing_action
def capture_jpeg(
self,