dataeval.metrics.stats.channelstats =================================== .. py:function:: 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. :param images: Images to perform calculations on :type images: Iterable[ArrayLike] :param bboxes: Bounding boxes in `xyxy` format for each image to perform calculations on :type bboxes: Iterable[ArrayLike] or None :returns: Output class containing the per-channel outputs of various stats functions :rtype: ChannelStatsOutput .. seealso:: :obj:`pixelstats`, :obj:`visualstats` .. rubric:: 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]