Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmchale/perceptual-hash
Perceptual Hash in J
https://github.com/vmchale/perceptual-hash
j perceptual-hash perceptual-hashing phash
Last synced: 10 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-05T23:07:09.000Z (over 4 years ago)
- Last Synced: 2024-11-10T23:33:17.022Z (2 months ago)
- Topics: j, perceptual-hash, perceptual-hashing, phash
- Language: J
- Size: 1000 KB
- Stars: 8
- Watchers: 5
- Forks: 0
- 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
```