#photos #media #pictures #entertainment #photo #celebrities

starbyface

Celebrity look alike face-recognition API

Show the crate…

1 stable release

1.0.0 Dec 28, 2021

#7 in #entertainment

Apache-2.0

34KB
713 lines

StarByFace

Celebrity look alike face-recognition API.

Example

use starbyface::StarByFace;

fn main() {
    let star = StarByFace::new("https://pics.wikifeet.com/Carmen-Electra-Feet-5286339.jpg");
    println!("{:?}",star.get_data().unwrap())

    /*
    Output:
	    [{"similarity": "46%", "name": "Carmen Electra"...etc.
     */
}

lib.rs:

Celebrity look alike face-recognition API

There should be only one person in the photo. Recommendations: The face should be clearly visible, it’s better to use frontal photos. Face recognition accuracy depends on the resolution and quality of a face image.

The system detects the face and creates a facial pattern. System facial point detection can locate the key components of faces, including eyebrows, eyes, nose, mouth and position.

The Neural Network compares the person with celebrity faces and suggests the most similar ones.

Dependencies

~6–18MB
~274K SLoC