dlib-face-recognition 0.3.2

Unofficial Rust wrappers to the C++ library dlib, face recognition tools
1
2
3
4
5
6
7
8
9
10
use super::landmarks::FaceLandmarks;
use crate::geometry::Rectangle;
use crate::matrix::ImageMatrix;

pub trait LandmarkPredictorTrait {
    /// Detect face landmarks.
    ///
    /// This will generally always return the number of landmarks as defined by the model.
    fn face_landmarks(&self, image: &ImageMatrix, rect: &Rectangle) -> FaceLandmarks;
}