用于计算图像感知哈希值的 Rust 库

时间:2021-06-28 18:19:54
【文件属性】:
文件名称:用于计算图像感知哈希值的 Rust 库
文件大小:27KB
文件格式:ZIP
更新时间:2021-06-28 18:19:54
img_hash img_hash现在建立在稳定的 Rust 之上!(但需要每晚坐凳。) 用于获取图像感知哈希值的库。感谢 Neal Krawetz 博士对均值 (aHash)、梯度 (dHash) 和 DCT (pHash) 感知哈希算法的概述:http://www.hackerfactor.com/blog/?/archives/432-Looks-Like-It.html(2014年 8 月访问)还提供了 Blockhash.io 算法的实现。此 crate 可以直接对来自PistonDevelopers/image crate 的缓冲区进行操作。用法文档将img_hash添加到Cargo.toml :[dependencies.img_hash] version = "3.0"示例程序:externcrate image;externcrate img_hash;use img_hash:: {HasherConfig, HashAlg};fnmain () {let image1= image::open ("image1.png" ).unwrap ();let image2= image:
【文件预览】:
img_hash-master
----.gitignore(47B)
----benches()
--------byte_to_float.rs(5KB)
----src()
--------alg()
--------traits.rs(7KB)
--------bin()
--------dct.rs(4KB)
--------lib.rs(25KB)
----.travis.yml(226B)
----Cargo.toml(766B)
----LICENSE-MIT(1KB)
----README.md(2KB)
----LICENSE-APACHE(11KB)

网友评论