#22 Fix bytearray errors

This commit is contained in:
James Hodgson
2022-10-07 15:08:12 +01:00
parent 40c609e10a
commit cc58fdff58
2 changed files with 9 additions and 5 deletions

View File

@@ -17,14 +17,14 @@ class PiCam:
"""
self.preview_resolution = resolution
def capture(self) -> bytes:
def capture(self) -> bytearray:
"""Capture an image
:returns: Image data as a byte buffer
"""
raise NotImplementedError
def capture_preview(self) -> bytes:
def capture_preview(self) -> bytearray:
"""Capture a preview image for the viewfinder
:returns: Image data as a byte buffer