LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Wrong type hint for the image shape argument #103

Closed WeisLeDocto closed 6 months ago

WeisLeDocto commented 6 months ago

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.