Fix typehints and docs for opencv camera
This commit is contained in:
parent
b124355fed
commit
5bb742881f
1 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ from PIL import Image
|
||||||
import labthings_fastapi as lt
|
import labthings_fastapi as lt
|
||||||
from labthings_fastapi.types.numpy import NDArray
|
from labthings_fastapi.types.numpy import NDArray
|
||||||
|
|
||||||
from . import BaseCamera, JPEGBlob
|
from . import BaseCamera
|
||||||
|
|
||||||
|
|
||||||
class OpenCVCamera(BaseCamera):
|
class OpenCVCamera(BaseCamera):
|
||||||
|
|
@ -106,8 +106,8 @@ class OpenCVCamera(BaseCamera):
|
||||||
self,
|
self,
|
||||||
stream_name: Literal["main", "full"] = "main",
|
stream_name: Literal["main", "full"] = "main",
|
||||||
wait: Optional[float] = None,
|
wait: Optional[float] = None,
|
||||||
) -> JPEGBlob:
|
) -> Image:
|
||||||
"""Acquire one image from the camera and return as a JPEG blob.
|
"""Acquire one image from the camera and return as a PIL image.
|
||||||
|
|
||||||
This function will produce a JPEG image.
|
This function will produce a JPEG image.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue