ImagePayload.cache
should support more generic data type
#868
Labels
topic:cv
topic: data
Issue about data loader modules and data processing related
topic: ontology
All issues related to ontologies in core, top and base_ontology
Milestone
Is your feature request related to a problem? Please describe.
Currently
ImagePayload.cache
is expected to benumpy.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.
The text was updated successfully, but these errors were encountered: