mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-14 10:52:32 +00:00
14 lines
340 B
Rust
14 lines
340 B
Rust
|
pub mod types;
|
||
|
pub mod video;
|
||
|
|
||
|
/// Create an instance of img_hash with project defaults.
|
||
|
pub fn get_hasher() -> img_hash::Hasher<[u8; 8]> {
|
||
|
use img_hash::{HashAlg::Gradient, HasherConfig};
|
||
|
|
||
|
HasherConfig::with_bytes_type::<[u8; 8]>()
|
||
|
.hash_alg(Gradient)
|
||
|
.hash_size(8, 8)
|
||
|
.preproc_dct()
|
||
|
.to_hasher()
|
||
|
}
|