https://github.com/vmchale/perceptual-hash
Perceptual Hash in J
https://github.com/vmchale/perceptual-hash
j perceptual-hash perceptual-hashing phash
Last synced: 5 months ago
JSON representation
Perceptual Hash in J
- Host: GitHub
- URL: https://github.com/vmchale/perceptual-hash
- Owner: vmchale
- License: bsd-3-clause
- Created: 2019-07-14T19:58:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-05T23:07:09.000Z (almost 5 years ago)
- Last Synced: 2025-01-08T12:07:45.365Z (6 months ago)
- Topics: j, perceptual-hash, perceptual-hashing, phash
- Language: J
- Size: 1000 KB
- Stars: 9
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# perceptual-hash
A DCT-based perceptual hash in J.
See [here](https://www.phash.org/docs/pubs/thesis_zauner.pdf) for background.
## Use
```j
load 'phash.ijs'
phash (read_image 'demo-data/frog.jpeg')
0 0 1 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 0 1 1 1 0 1 1 0 1 1 0 0 0 0 0 1 1 1 0 1 0 0 1 0 1 0 0 0
phash (read_image 'demo-data/frog.png')
0 0 1 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 0 1 1 1 0 1 1 0 1 1 0 0 0 0 0 1 1 1 0 1 0 0 1 0 1 0 0 0
phash (read_image 'demo-data/cat.png')
0 0 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 0 0 0 1 1 1 1 1 0 0 1 0 0 1 1 1 1 0 0 1 1 0 1 1 0 0 0 0 1 1 1 1 0 0 1
```