Expand description
aHash / dHash perceptual hashes over a gray buffer.
Honest scope: compact image fingerprints for local near-duplicate / CBIR
proxy search — not semantic CLIP embeddings. When ONNX CLIP (or similar)
lands under vendor/vision/embeddings/, use that for open-vocab meaning;
keep these hashes for cheap layout/structure pre-filter.
Constants§
- AHASH_
SIDE - Side length for aHash (8×8 → 64 bits).
- DHASH_
HEIGHT - DHASH_
WIDTH - dHash samples (WIDTH+1)×HEIGHT so adjacent horizontal diffs yield 64 bits.