dataeval.metrics.stats.channelstats#
- dataeval.metrics.stats.channelstats(images, bboxes=None)#
Calculates various per-channel statistics for each image
This function computes pixel and visual metrics on the images or individual bounding boxes for each image.
- Parameters:
images (Iterable[ArrayLike]) – Images to perform calculations on
bboxes (Iterable[ArrayLike] or None) – Bounding boxes in xyxy format for each image to perform calculations on
- Returns:
Output class containing the per-channel outputs of various stats functions
- Return type:
See also
Examples
Calculating the per-channel pixel and visual stats for a dataset
>>> stats = channelstats(stats_images) >>> print(stats.visualstats.darkness) [0.1499 0.3499 0.55 0.2094 0.2219 0.2344 0.4194 0.6094 0.622 0.6343 0.8154]