/face_shape_analyzer

An application that analyzes face shapes.

Primary LanguageCSSGNU Lesser General Public License v3.0LGPL-3.0

GitHub GitHub GitHub

Face Shape Analyzer

Around age 17, I attempted to come up with a way to accurately detect the shape of a person's face. Right now beauty experts use loose guidelines such as the width of the forehead, or the sharpness of the chin to roughly classify a face shape. Here is my process of determining the shape of a person's face.

Principle

The human face can be broadly classified into 4 major types. Ofcourse there are plenty of variations because each person is unique. The major face shape categories are:

  • Square
  • Heart
  • Oval
  • Round

Method

Create a Convolution Neural Networks(CNNs) which is trained using celebrity images for each face shape. These will act as benchmarks.

Feed the user's image into the newly trained model. The shape with the highest probability is the user's face shape.

Implementing Deep Learning

Neural Network Used: CNN

Neurons in output layer: 4

Test

By looking at this photo, you would say that the face shape is oval. This inference can change from person to person. Let's see what result the CNN gives us.

Result

Generated output: Oval

The CNN has analyzed the image and confirmed that it is an oval shaped face.

Benchmarks:

Square Face:

  • Billie Piper
  • Demi Moore
  • Jennifer Aniston
  • Katie Holmes
  • Kelly Osborne
  • Renee Zellweger
  • Sandra Bullock

Heart Face:

  • Cheryl Cole
  • Eva Longoria-Parker
  • Gwyneth Paltrow
  • Mary-Kate Olsen
  • Naomi Campbell
  • Nicole Richie
  • Reese Witherspoon

Oval Face:

  • Cameron Diaz
  • Charlize Theron
  • Cindy Crawford
  • Courtney Cox
  • Elle Macpherson
  • Julia Roberts
  • Rihanna

Round Face:

  • Drew Barrymore
  • Ginnifer Goodwin
  • Hayden Panettiere
  • Isla Fisher
  • Kate Bosworth
  • Mila Kunis

Dataset

To learn more about the dataset, visit the link below:

https://github.com/prateekmehta59/Celebrity-Face-Recognition-Dataset

References:

Square face shape:

https://www.cosmopolitan.com/uk/beauty-hair/celebrity-hair-makeup/g1646/celebrity-face-shapes-square-99685/

Heart face shape:

https://www.cosmopolitan.com/uk/beauty-hair/celebrity-hair-makeup/g1642/celebrity-face-shapes-heart-99644/

Oval face shape:

https://www.cosmopolitan.com/uk/beauty-hair/celebrity-hair-makeup/g1644/celebrity-face-shapes-oval-99666/

Round face shape:

https://www.cosmopolitan.com/uk/beauty-hair/celebrity-hair-makeup/g1645/celebrity-face-shapes-round-99677/