Added a new way to capture full res JPEGs, need to do a comparison of results

This commit is contained in:
jaknapper 2025-04-29 18:52:59 +01:00 committed by Julian Stirling
parent ab33de7ccd
commit 26163dc97e
3 changed files with 65 additions and 2 deletions

View file

@ -77,6 +77,11 @@ class CameraProtocol(Protocol):
"""Acquire one image from the preview stream and return its size"""
...
def capture_jpeg_array(
self,
):
...
class BaseCamera(Thing):
"""A Thing representing a camera
@ -170,6 +175,12 @@ class CameraStub(BaseCamera):
) -> NDArray:
raise NotImplementedError("Cameras must not inherit from CameraStub")
@thing_action
def capture_jpeg_array(
self,
):
raise NotImplementedError("Cameras must not inherit from CameraStub")
@thing_action
def capture_jpeg(
self,