@@ -528,7 +528,7 @@ def snap_image(self) -> ArrayModel:
528
528
@thing_action
529
529
def capture_array (
530
530
self ,
531
- stream_name : Literal ["main" , "lores" , "raw" ] = "main" ,
531
+ stream_name : Literal ["main" , "lores" , "raw" , "full" ] = "main" ,
532
532
wait : Optional [float ] = None ,
533
533
) -> ArrayModel :
534
534
"""Acquire one image from the camera and return as an array
@@ -537,9 +537,13 @@ def capture_array(
537
537
It's likely to be highly inefficient - raw and/or uncompressed captures using
538
538
binary image formats will be added in due course.
539
539
540
- stream_name: (Optional) The PiCamera2 stream to use, should be one of ["main", "lores", "raw"]. Default = "main"
540
+ stream_name: (Optional) The PiCamera2 stream to use, should be one of ["main", "lores", "raw", "full" ]. Default = "main"
541
541
wait: (Optional, float) Set a timeout in seconds. A TimeoutError is raised if this time is exceeded during capture. Default = None
542
542
"""
543
+ if stream_name == "full" :
544
+ with self .picamera (pause_stream = True ) as picam2 :
545
+ capture_config = picam2 .create_still_configuration ()
546
+ return picam2 .switch_mode_and_capture_array (capture_config )
543
547
with self .picamera () as cam :
544
548
return cam .capture_array (stream_name , wait = wait )
545
549
@@ -774,15 +778,6 @@ def grab_jpeg(
774
778
)
775
779
return JPEGBlob .from_bytes (frame )
776
780
777
- @thing_action
778
- def capture_highres_array (
779
- self ,
780
- ):
781
- with self .picamera (pause_stream = True ) as picam2 :
782
- capture_config = picam2 .create_still_configuration ()
783
- array = picam2 .switch_mode_and_capture_array (capture_config )
784
- return array
785
-
786
781
@thing_action
787
782
def grab_jpeg_size (
788
783
self ,
0 commit comments