HashStatsOutput#

class dataeval.metrics.stats.HashStatsOutput(source_index: list[SourceIndex], box_count: NDArray[np.uint16], xxhash: list[str], pchash: list[str])#

Output class for hashstats() stats metric

xxhash#

xxHash hash of the images as a hex string

Type:

List[str]

pchash#

Perception hash of the images as a hex string

Type:

List[str]

get_channel_mask(channel_index: int | Iterable[int] | None, channel_count: int | Iterable[int] | None = None) list[bool]#

Boolean mask for results filtered to specified channel index and optionally the count of the channels per image.

Parameters:
  • channel_index (int | Iterable[int] | None) – Index or indices of channel(s) to filter for

  • channel_count (int | Iterable[int] | None) – Optional count(s) of channels to filter for