Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaiGorordo authored Oct 31, 2021
1 parent 0b9b9db commit 8276fd7
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,54 @@
# 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](https://github.com/Kazuhito00) repository was used: https://github.com/Kazuhito00/Skin-Clothes-Hair-Segmentation-using-SMP

# Examples

* **Halloween background**:

![Mediapipe Halloween background](https://github.com/ibaiGorordo/Mediapipe-Halloween-Examples/blob/main/doc/img/halloween_background.gif)
```
python webcamHalloweenBackground.py
```

* **Pumpkin face**:

![Mediapipe Pumpkin face](https://github.com/ibaiGorordo/Mediapipe-Halloween-Examples/blob/main/doc/img/pumpkin_face.gif)
```
python webcamPumpkinFace.py
```

* **Fire Hair**:

![Mediapipe Fire Hair](https://github.com/ibaiGorordo/Mediapipe-Halloween-Examples/blob/main/doc/img/fire_hair.gif)
```
python webcamFireHair.py
```

* **Exorcist Face Mesh**:

![Mediapipe Exorcist Face Mesh](https://github.com/ibaiGorordo/Mediapipe-Halloween-Examples/blob/main/doc/img/exorcist.gif)
```
python webcamFaceMeshExorcist.py
```

* **Skeleton Pose**:

![Mediapipe Skeleton Pose](https://github.com/ibaiGorordo/Mediapipe-Halloween-Examples/blob/main/doc/img/skeleton.gif)
```
python webcamSkeletonPose.py
```

# References:
Check the header in each of the scripts for the references for each model.

0 comments on commit 8276fd7

Please sign in to comment.