Is your feature request related to a problem? Please describe.
Currently ImagePayload.cache is expected to be numpy.Ndarray but sometimes we read image into a library-specific objects that can be handy for the library-specific post-processing.
Describe the solution you'd like
We should support more generic data types rather than numpy array only.
For example, some image data objects from PIL library.
Also, note that this library supports lazy loading internally while initializing an image object by PIL.Image.open(image_path)
Describe alternatives you've considered
No.
Additional context
No.
Is your feature request related to a problem? Please describe.
Currently
ImagePayload.cacheis expected to benumpy.Ndarraybut sometimes we read image into a library-specific objects that can be handy for the library-specific post-processing.Describe the solution you'd like
We should support more generic data types rather than numpy array only.
For example, some image data objects from
PILlibrary.Also, note that this library supports lazy loading internally while initializing an image object by
PIL.Image.open(image_path)Describe alternatives you've considered
No.
Additional context
No.