whylogs.core.image_profiling

TrackImage Objects#

class TrackImage()

This 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 features
  • feature_transforms List[Callable] - Feature transforms to be apply to image data.
  • img PIL.Image - the PIL.Image
  • metadata_attributes TYPE - metadata attributes to track

__call__#

| __call__(profiles)

Call method to add image data and metadata to associated profiles

Arguments:

  • profiles Union[List[DatasetProfile],DatasetProfile] - DatasetProfile

get_pil_image_metadata#

get_pil_image_metadata(img: ImageType) -> Dict

Grab metra data from a PIL Image

Arguments:

  • img ImageType - PIL Image

Returns:

  • Dict - of metadata