Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parity with Python #57

Open
3 tasks
BradKML opened this issue Aug 31, 2021 · 3 comments
Open
3 tasks

Parity with Python #57

BradKML opened this issue Aug 31, 2021 · 3 comments

Comments

@BradKML
Copy link

BradKML commented Aug 31, 2021

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

  • Marr-Hildreth
  • Color Moment
  • wHash (wavelet hash)
@KilianB
Copy link
Owner

KilianB commented Aug 31, 2021

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
Copy link

ArrowM commented Aug 10, 2023

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
Copy link

ArrowM commented Aug 11, 2023

Created #70 with a rough draft,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants