Face_Filters_using_python_mediapipe

Face_Filters_using_python_mediapipe.mp4

Description

This project demonstrates how to use computer vision to overlay various filters on faces. By utilizing OpenCV and other Python libraries, the project can detect faces in an image and superimpose fun and thematic filters based on popular superhero characters.

Sample Filters

  • Deadpool Mask: Adds Deadpool's mask over the face.
  • Wolverine Mask and Claws: Adds Wolverine's mask and claws to the face and hands.
  • Captain America's Shield: Adds Captain America's shield.

Project Structure

  • main.ipynb: Jupyter Notebook containing the main code for applying face filters.
  • main.py: Python script containing the main code for applying face filters.
  • images/: Directory containing image assets used for the filters.
    • claw_1.png: Wolverine claw image.
    • deadpool1.png: Deadpool mask image.
    • deadpool2.png: Another Deadpool mask image.
    • shield_1.png: Captain America's shield image.
    • Wolverine_3.png: Wolverine mask image.

How to Run

  1. Clone the repository:
git clone https://github.com/SudharsanSambathkumar/Face_Filters_using_python_mediapipe.git
cd Face_Filters_using_python_mediapipe
  1. Install the required packages:
pip install -r requirements.txt
  1. Run the Jupyter Notebook:
jupyter notebook main.ipynb

OR run the Python script:

python main.py
  1. Follow the instructions in main.ipynb or main.py to see the face filters applied to sample images.