Skip to content

ibaiGorordo/Mediapipe-Halloween-Examples

Repository files navigation

Mediapipe-Halloween-Examples

Python scripts using the Mediapipe models for Halloween.

WHY

Mainly for fun. But this repository also includes useful examples for things like image transformations (affine), image overlapping, model inference...

Installation

git clone https://github.com/ibaiGorordo/Mediapipe-Halloween-Examples
cd Mediapipe-Halloween-Examples
pip install -r requirements.txt

Original models

Most of the models were taken from Mediapipe: https://google.github.io/mediapipe/solutions/solutions.html. However, the hair segementation model is not currently suppoeted in Python, instead the model from Kazuhito00's repository was used: https://github.com/Kazuhito00/Skin-Clothes-Hair-Segmentation-using-SMP

Examples

  • Skeleton Pose:

Mediapipe Skeleton Pose

python webcamSkeletonPose.py
  • Halloween background:

Mediapipe Halloween background

python webcamHalloweenBackground.py
  • Exorcist Face Mesh:

Mediapipe Exorcist Face Mesh

python webcamFaceMeshExorcist.py
  • Pumpkin face:

Mediapipe Pumpkin face

python webcamPumpkinFace.py
  • Fire Hair:

Mediapipe Fire Hair

python webcamFireHair.py

References:

Check the header in each of the scripts for the references for each model.