Apply suggestions from code review of branch unify-jpeg-capture

Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
This commit is contained in:
Julian Stirling 2025-08-27 15:32:55 +00:00
parent 5bb742881f
commit b46f429c1f
2 changed files with 5 additions and 2 deletions

View file

@ -266,7 +266,7 @@ class BaseCamera(lt.Thing):
) -> JPEGBlob:
"""Acquire one image from the camera as a JPEG.
This will use the internal capture image functionally of capture_image if
This will use the internal capture image functionally of capture_image of
the specific camera being used.
:param metadata_getter: LabThings GetThingStates dependency, automatically

View file

@ -550,7 +550,10 @@ class StreamingPiCamera2(BaseCamera):
it may miss one frame).
If ``full`` resolution is requested, we will briefly pause the MJPEG stream and
reconfigure the camera to capture a full resolution image.
reconfigure the camera to capture a full resolution image. This will capture an
image at the full resolution of the current sensor mode. If the current sensor
mode bins or crops the image, this may not be the native resolution of the
camera sensor.
:param stream_name: (Optional) The PiCamera2 stream to use, should be one of
["main", "lores", "full"]. Default = "main". Note that "raw" images cannot