Use this library to create the perfect picture for your christmas cards! Done by Hasib Zunair, Guillaume Brassard and Samuel Mercier.
Figure 1. Your christmas card picture!
Python = 3.9.0 required. You'll also need to have an available Webcam (camera) to capture your beautiful face :). Then, run below commands.
conda create -n xmas python=3.9
conda install -c conda-forge jupyterlab
pip install kivy, kivymd, opencv-python
This library uses machine learning (face detection) to add a nice christmas app and christmas beard to your background. Based on KivyMD, run the app.py
to see two screens appear: one will be the regular video as captured by your webcam, while the other screen will show you
the modified image with a santa claus hat and bear, a nice christmas background and even a Mariah Carey song to boost your christmas spirit!
- Adds christmas hat
- Adds beard
- Christmas song start playing when app starts up!
To use this code, clone this repo
git clone https://github.com/hasibzunair/xmas-decathlon
cd xmas-decathlon
Then, run app.py
and take a snapshot. You can find your christmas card in data/your_avatar.png
.
If you want to modify the background image or the song, simply head over to the data/
folder and switch the background images and .wav
file to anything you would like!