Skip to content

imgddcore: can we parameterize phash hash_size? #30

@tgpfeiffer

Description

@tgpfeiffer

In https://github.com/JohannesBuchner/imagehash/blob/4e289ebe056b961aa19fb1b50f5bdc66c87e0d55/imagehash/__init__.py the hash_size parameter can be changed to increase accuracy. In this repository the hash size is hardcoded to 8

const HASH_SIZE: usize = 8;
and because all hashes share the same underlying ImageHash data structure using u64
pub struct ImageHash {
hash: u64,
}
it's not obvious how to make the code more flexible.

I'm happy to work on this, but do you have any suggestion/preference on how it should be done? @aastopher

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions