Home Mediapipe Halloween Examples
Post
Cancel

Open In Github

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

1
2
3
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

1
 python webcamSkeletonPose.py
  • Halloween background:

Mediapipe Halloween background

1
 python webcamHalloweenBackground.py
  • Exorcist Face Mesh:

Mediapipe Exorcist Face Mesh

1
 python webcamFaceMeshExorcist.py
  • Pumpkin face:

Mediapipe Pumpkin face

1
 python webcamPumpkinFace.py
  • Fire Hair:

Mediapipe Fire Hair

1
 python webcamFireHair.py

References:

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

This post is licensed under CC BY 4.0 by the author.