Small tweaks to simulation camera to get scanning working.
This commit is contained in:
parent
b75af87b84
commit
8ce06991f9
3 changed files with 45 additions and 13 deletions
|
|
@ -295,12 +295,11 @@ class BaseCamera(lt.Thing):
|
|||
)
|
||||
return portal.call(stream.next_frame_size)
|
||||
|
||||
@lt.thing_action
|
||||
def capture_image(
|
||||
self,
|
||||
stream_name: Literal["main", "lores", "raw"],
|
||||
wait: Optional[float],
|
||||
) -> None:
|
||||
) -> Image:
|
||||
"""Capture a PIL image from stream stream_name with timeout wait."""
|
||||
raise NotImplementedError(
|
||||
"CameraThings must define their own capture_image method"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue