Skip to content

Expose methods for calculating statistics on individual images for on the fly evaluation #210

Open
@sanjanag

Description

@sanjanag

Motivation

Sometimes statistics on images like blurriness, brightness, entropy need to be monitored in a streaming setting for each individual image. For example, measuring entropy of images in an inference pipeline. Right now CleanVision only supports issue detection in images in a batch setting.

Goal

The goal here is to expose calculation of statistics like entropy, brightness, etc, for individual images from the package wrapped inside a module.

Code Details

The methods exist in a private module src/cleanvision/issue_managers/image_property.py. The main methods here for calculating statistics and scores: calculate and get_scores can be found for each property.

API

from cleanvision.utils import get_entropy, get_low_information_score

entropy = get_entropy(image) # PIL image
low_information_score = get_low_information_score(image) # PIL image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions