Update camera thing to match upstream
This commit is contained in:
parent
6cf99d5096
commit
a4801ad861
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class CameraProtocol(Protocol):
|
||||||
|
|
||||||
def capture_array(
|
def capture_array(
|
||||||
self,
|
self,
|
||||||
resolution: Literal["lores", "main", "full"] = "main",
|
stream_name: Literal["main", "lores", "raw"] = "main",
|
||||||
) -> NDArray: ...
|
) -> NDArray: ...
|
||||||
|
|
||||||
def capture_jpeg(
|
def capture_jpeg(
|
||||||
|
|
@ -166,7 +166,7 @@ class CameraStub(BaseCamera):
|
||||||
@thing_action
|
@thing_action
|
||||||
def capture_array(
|
def capture_array(
|
||||||
self,
|
self,
|
||||||
resolution: Literal["lores", "main", "full"] = "main",
|
stream_name: Literal["main", "lores", "raw"] = "main",
|
||||||
) -> NDArray:
|
) -> NDArray:
|
||||||
raise NotImplementedError("Cameras must not inherit from CameraStub")
|
raise NotImplementedError("Cameras must not inherit from CameraStub")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue