Versions in this module Expand all Collapse all v0 v0.1.1 Sep 9, 2026 v0.1.0 Sep 9, 2026 Changes in this version + func DHash(img image.Image) uint64 + func Decode(r io.Reader) (image.Image, error) + func Hamming(a, b uint64) int + func PHash(img image.Image) uint64 + type Hasher func(image.Image) uint64 + type ImageCandidate struct + Hash uint64 + ID string + type Match struct + Distance int + ID string + func MatchImage(target uint64, candidates []ImageCandidate, threshold int) []Match + func MatchVideo(target Signature, candidates []VideoCandidate, rule VideoRule) []Match + type Signature struct + DurationMS int64 + Frames []uint64 + func VideoSignature(ctx context.Context, path string, count int, hash Hasher) (Signature, error) + type VideoCandidate struct + ID string + Signature Signature + type VideoRule struct + Quorum int + Threshold int