Crates.io | dlib-face-recognition |
lib.rs | dlib-face-recognition |
version | 0.3.2 |
source | src |
created_at | 2020-05-27 19:57:18.082118 |
updated_at | 2023-10-02 06:28:26.562475 |
description | Unofficial Rust wrappers to the C++ library dlib, face recognition tools |
homepage | https://github.com/podo-os |
repository | https://github.com/podo-os/dlib-face-recognition |
max_upload_size | |
id | 246786 |
size | 45,577 |
Inspired by a similar python library,
dlib-face-recognition
is a Rust library that binds to certain specific features of the dlib C++ library.
This repository will dedicate itself to improve the library's content.
These include:
The original work is here (unmaintaned; since Aug 2021).
Apple M1
)For better maintenance, please let us know whether the other platforms support it.
Besides, you may claim us whether the specific platform should support it through Issues
.
openblas
feature )build-native
feature)For Windows, vcpkg
may help building both Blas
and lapack
.
For other platforms such as Linux, package managers should support installing them.
dlib-face-recognition
requires dlib to be installed. You can either provide a existing system-wide installation, or build it with this library.
cargo build --features build-native
cargo build
The C++ library dlib
will be installed via dlib-face-recognition-sys
when the build-native
feature flag is enabled.
For the build, this library uses cmake
, so please make sure to have cmake
.
The build-native
flag is disabled by default, offering increased build times.
dlib-face-recognition
includes a embed-all
feature flag that can be used with cargo build --features embed-all
.
embed-all
will enable the Default::default
implementations the matching structs. These will search for the /files folder, and if a file doesn't exist it will be downloaded at runtime.
It is recommended to acquire the files before compile/runtime and set them in a protected location.
The embed-all
flag is disabled by default, offering increased build times.
There is one included test to recognize, and draw a face's points:
cargo run --features embed-all --example draw
-> To run the example.There is two files to benchmark the code, and test some functions:
cargo test --features embed-all --test benchmarks
-> To run the benchmarks.cargo test --features embed-all --test utilities_tests
-> To run the utilities tester.For more information on examples: https://github.com/ulagbulag/dlib-face-recognition/tree/master/examples/README.md