dataeval.core.xxhash

dataeval.core.xxhash(image)

Compute fast non-cryptographic hash using xxHash algorithm.

Hashes the raw image bytes to detect exact duplicates. Any difference in pixel values will produce a different hash.

Parameters:
image : Array3D

An image in CxHxW format. Can be a 3D list, or array-like object.

Returns:

Hex string hash of the image using the xxHash algorithm.

Return type:

str

Notes

xxHash is used for exact duplicate detection only. Unlike perceptual hashes, it will produce completely different values for images that differ by even a single pixel.