JImageHash icon indicating copy to clipboard operation
JImageHash copied to clipboard

Parity with Python

Open BradKML opened this issue 3 years ago • 3 comments

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

  • [ ] Marr-Hildreth
  • [ ] Color Moment
  • [ ] wHash (wavelet hash)

BradKML avatar Aug 31 '21 06:08 BradKML

~~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

KilianB avatar Aug 31 '21 08:08 KilianB

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 avatar Aug 10 '23 21:08 ArrowM

Created #70 with a rough draft,

ArrowM avatar Aug 11 '23 00:08 ArrowM