KilianB / JImageHash

Perceptual image hashing library used to match similar images
MIT License
407 stars 83 forks source link

Parity with Python #57

Open BradKML opened 3 years ago

BradKML commented 3 years ago

https://github.com/thorn-oss/perception

KilianB commented 3 years ago

~~Could you provide some documentation for how the hash is calculated? I looked at Color Moment and it calls the open cv implementation.~~

Color Moment & Marr : https://www.phash.org/docs/pubs/thesis_zauner.pdf Wavelet: https://github.com/thorn-oss/perception/blob/0dcecd14fa18d5864491b9f2be9a89a724373e00/perception/hashers/image/wavelet.py

ArrowM commented 1 year ago

I would really appreciate an implementation of Color Moment. I found a working Python implementation of it that seems like it should be easy to translate - just doing Mean, Standard Deviation and Skewness operations on the HSV channels.

hash: https://github.com/chongwar/image-sort/blob/d19d990809c3caf5d4219aa3497df8ca760e0fcc/_hash.py#L83 hamming: https://github.com/chongwar/image-sort/blob/d19d990809c3caf5d4219aa3497df8ca760e0fcc/_hash.py#L118

I'm trying to take a stab at implementing it with your library, I'm not feeling super confident though.

ArrowM commented 1 year ago

Created #70 with a rough draft,