In the Camera Block and CameraProcess class, the img_shape argument was type-hinted as Tuple[int, int]. This was correct for gray level images, but incorrect for color images.
With this PR, the type hints are updated to Union[Tuple[int, int], Tuple[int, int, int]] to also consider the image colors.
In the
Camera
Block andCameraProcess
class, theimg_shape
argument was type-hinted asTuple[int, int]
. This was correct for gray level images, but incorrect for color images.With this PR, the type hints are updated to
Union[Tuple[int, int], Tuple[int, int, int]]
to also consider the image colors.