Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 464 Bytes

File metadata and controls

17 lines (12 loc) · 464 Bytes

mtcnn-rs

Rust implementation of the MTCNN face detector.

Usage

    let mtcnn = MTCNN::new("mtcnn.pb").unwrap();//Load the model
    let image = imread("faces.jpg", IMREAD_COLOR).unwrap();
    let faces_roi=mtcnn.detect_faces_aligned(&image).unwrap(); //Returns a vec of cropped faces 

    imshow("Detected Face", &faces_roi[0]).unwrap();

    wait_key(0).unwrap();

References

Original python implementation: https://github.com/ipazc/mtcnn