Inspiration

The concept of beauty has fascinated human beings since time immemorial. With the development of artificial intelligence and deep learning, we tried to explore how technology can be harnessed for assisting in comprehending and enhancing facial beauty. Taking inspiration from the Golden Ratio, which has been historically associated with symmetry and beauty, we developed a real-time 3D facial beauty analysis and enhancement system. The project is meant to provide information regarding facial proportion and skin tone, enabling the users to comprehend their facial shape and augmentation regions.

What it does

This project employs MediaPipe Face Mesh and deep learning for real-time 3D face analysis. The system processes video frames, detects facial landmarks, and calculates important beauty ratios such as:

Face proportions

Eye-to-face ratio

Nose-to-face ratio

These ratios are utilized by a neural network model to estimate a beauty score. The skin tone is also analyzed in HSV color space, labeling it as light, medium, or dark. Real-time recommendations for facial symmetry improvement based on the Golden Ratio are also provided by the system.

How we built it

MediaPipe Face Mesh: Used to perform accurate facial landmark detection.

OpenCV: Used for video frame processing and visual element rendering.

Deep Learning Model (TensorFlow/Keras): Used to train a neural network to output a beauty score based on computed facial ratios.

Matplotlib & 3D Visualization: Used to display facial proportions and enhancements.

Skin Tone Analysis: Used through the HSV color space in order to identify various skin tones from chosen facial areas.

Challenges we ran into

Landmark Precision: It was challenging to pinpoint facial landmarks with accuracy and achieve consistent measurement with changing lighting conditions.

Training a Beauty Score Model: It was challenging to prepare a dataset with accurate beauty score labels for supervised learning.

Real-Time Performance: It was challenging to fine-tune the system to run seamlessly at real-time speeds without compromising accuracy.

Skin Tone Variation: Accurate classification of skin tones in relation to changing lighting conditions was challenging.

Accomplishments that we're proud of

Successfully implemented a real-time facial analysis system that functions properly.

Trained a neural network model that was able to make accurate beauty score predictions.

Integrated skin tone detection with facial proportion analysis.

Provided real-time feedback to enhance facial symmetry through the Golden Ratio.

Designed an aesthetically pleasing and interactive user interface for users to engage with their facial analysis result.

What we learned

The role of facial symmetry in perceived beauty.

How deep learning models are applicable to aesthetic judgments.

Recent advancements in computer vision and real-time video processing.

The difficulty in maintaining fairness and accuracy in beauty judgments.

The significance of optimizing AI models for real-time usage.

What's next for Real-Time 3D Facial Beauty Analysis and Enhancement

Improving the Beauty Score Model: Gathering additional training data to improve the accuracy of beauty predictions.

Augmented Reality (AR) Integration: Enabling users to view real-time beauty enhancement recommendations through AR overlays.

Personalized Beauty Recommendations: Recommending skincare regimens and beauty enhancements from facial analysis.

Mobile Application Development: Developing the project into a mobile-compatible app for wider accessibility.

Diverse Beauty Standards: Ad

ding greater cultural and individual diversity to beauty analysis.

Built with

Programming Languages: Python

Frameworks & Libraries: TensorFlow, Keras, OpenCV, MediaPipe, NumPy, Matplotlib

Platforms & Tools: pycham

APIs: MediaPipe Face Mesh API

Visualization Tools: Matplotlib, 3D plotting with mpl_toolkits

Links

Video Demonstration: https://youtu.be/yekqy9WVBDA?si=7aKR9Ztgcjwvi8R5

GitHub Repository: https://github.com/NAGULME/python-projects/tree/main/beauty_ration

Built With

Share this project:

Updates