whylogs.core.image_profiling
#
TrackImage ObjectsThis is a class that computes image features and visits profiles and so image features can be sketched.
Attributes:
feature_name
str - name given to this image feature, will prefix all image based featuresfeature_transforms
List[Callable] - Feature transforms to be apply to image data.img
PIL.Image - the PIL.Imagemetadata_attributes
TYPE - metadata attributes to track
#
__call__Call method to add image data and metadata to associated profiles
Arguments:
profiles
Union[List[DatasetProfile],DatasetProfile] - DatasetProfile
#
get_pil_image_metadataGrab metra data from a PIL Image
Arguments:
img
ImageType - PIL Image
Returns:
Dict
- of metadata