Added a new way to capture full res JPEGs, need to do a comparison of results
This commit is contained in:
parent
ab33de7ccd
commit
26163dc97e
3 changed files with 65 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue