visfeats.extract_all_features#

visfeats.extract_all_features(image: Image, features: str | Sequence[str] = 'all') → Dict[str, float]#

Extract selected visual features from an image.

Parameters:
imageImage

Input image in any Pillow mode.

featuresstr or sequence of str, default=”all”

"all" selects every package-level feature. A feature name or sequence of feature names selects only those features. Available names are "hsv_features", "spatial_frequency_features", "rms", "compressibility_pillow", and "memorability_resmem".

Returns:
dict of {str: float}

A flat mapping of feature names to values. Multi-value features contribute their own keys. memorability_resmem is skipped with a warning if the optional resmem package is not installed.

Raises:
ValueError

If any requested feature name is not available.