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
In https://github.com/JohannesBuchner/imagehash/blob/4e289ebe056b961aa19fb1b50f5bdc66c87e0d55/imagehash/__init__.py the
hash_sizeparameter can be changed to increase accuracy. In this repository the hash size is hardcoded to 8imgdd/crates/imgddcore/src/hashing.rs
Line 137 in 3dcfca5
ImageHashdata structure usingu64imgdd/crates/imgddcore/src/hashing.rs
Lines 12 to 14 in 3dcfca5
I'm happy to work on this, but do you have any suggestion/preference on how it should be done? @aastopher