dlib-face-recognition-cv

Crates.iodlib-face-recognition-cv
lib.rsdlib-face-recognition-cv
version0.1.0
sourcesrc
created_at2020-05-29 18:32:14.953003
updated_at2020-05-29 18:32:14.953003
descriptionUnofficial Rust wrappers to the C++ library dlib, face recognition tools
homepagehttps://github.com/podo-os
repositoryhttps://github.com/podo-os/dlib-face-recognition
max_upload_size
id247449
size2,752
Ho Kim (kerryeon)

documentation

README

dlib-face-recognition

Inspired by a similar python library, dlib-face-recognition is a Rust library that binds to certain specific features of the dlib C++ library.

These include:

  • An FHOG-based face detector.
  • A CNN-based face detector (slower, but more powerful).
  • A face landmark predictor for identifying specific landmarks (eyes, nose, etc) from face rectangles.
  • A face encoding neural network for generating 128 dimensional face encodings that can be compared via their euclidean distances.

Original Working

The original working is here.

Building

dlib-face-recognition requires dlib to be installed.

on (at least) OSX, I believe lapack and openblas also need to be installed.

dlib-face-recognition includes a embed-all feature flag that can be used with cargo build --features embed-all.

This will automatically download the face predictor, cnn face detector and face encoding neural network models (the fhog face detector is included in dlib and does not need to be downloaded). Alternatively, these models can be downloaded manually:

If this feature flag is enabled, the matching structs will have Default::default implementations provided that allows you to load them without having to worry about file locations.

Commit count: 104

cargo fmt