26个版本
0.2.16 | 2023年8月17日 |
---|---|
0.2.14 | 2023年8月17日 |
0.1.9 | 2023年8月11日 |
24 in #convert-images
165 每月下载量
23KB
172 行代码(不含注释)
ImageToVector
As the name suggested "ImagetoVector", which allow to operate on images.
Read images from Disk
Convert images into vector notion.
Register your Face
Login through your Face
安装
cargo add img2vec
模块
ImagetoVector
Middleware
函数
ImagetoVector
pub async fn open_image<'a>(path : String) -> DynamicImage // return image
pub async fn new(dy_image : DynamicImage) -> ImagesVec // return class object
// convert image to vector
pub async fn image_to_vec(&mut self, components : usize) -> Array2<f64>
vec_middleware
// insert value in sled database
pub async fn add_value(&mut self, mut authenicate : Authorization, db : Db) -> std::io::Result<()>
// get value from sled database
pub async fn get_value(&mut self, client : Db) -> std::io::Result<IVec>
pub async fn register_face() -> Result<(), std::io::Error> // register face
pub async fn create_index() -> Db // create index in sled database
pub async fn unlock_account(db : Db) -> std::io::Result<()> // unlock account
原生依赖
Img2vec is only compactible with linux distos because ndarray-linalg native (openblas) linux features are linked. Soon this module avaible for other operating systems as well.
OS Supported Upcoming
Linux Yes Optimized
Mac No Optimized + native-lib
Windows No Optimized + native-lib
Make sure libopenblas-dev already installed on your linux machine.
:~$ sudo apt install libopenblas-dev
维护
WISDOMENIGMA@2023
依赖
~80MB
~1M SLoC