This project is a Python application that detects faces in an image or video stream and analyzes their shapes using a combination of aspect ratio and facial landmarks (when available). It's designed for anyone interested in exploring face analysis or building applications that require basic face shape recognition.
- Cosmetics: Makeup application techniques and product recommendations can be tailored to complement your face shape (e.g., highlighting techniques for round faces, contouring for square faces).
- Fashion: Choosing hairstyles, eyeglasses, and clothing styles that flatter your face shape can enhance your appearance.
- Aesthetics: Understanding your face shape can help with aesthetic procedures (if considering them) by guiding decisions about what might be most harmonious with your natural features.
[Insert a short GIF or video demonstrating the face shape detection and analysis functionalities](replace with the actual link to your demo)
- Detects faces in real-time from a webcam or video file.
- Analyzes face shape using aspect ratio and, if enabled, facial landmarks (requires additional libraries).
- Classifies faces into various shapes like Oval, Round, Square/Rectangular, Diamond (basic), Triangle (basic), and Heart (basic).
Requirements:
- Python 3.x
- OpenCV (cv2)
- NumPy (np)
Installation:
-
Clone this repository:
git clone https://github.com/your-username/face-shape-detector.git
-
Navigate to the project directory:
cd face-shape-detector -
Install required libraries:
pip install opencv-python numpy
-
Run the script:
python app.py
-
Press 'q' to quit the application.
We welcome contributions to this project! Please see the contributing.md file for details on how to get started and the guidelines to follow.
This project is licensed under the MIT License. See the LICENSE file for details.