Welcome to the spectacle of digital artistry where Python's magic intertwines with openCV's prowess to bring you the ultimate Face Swap experience. Delve into our Flask-powered cauldron where faces are swapped, laughter is guaranteed, and everyone gets a taste of being someone else!
Behold the technological enchantment where the arcane shape_predictor_68_face_landmarks
model unveils the secrets of facial landmarks, weaving them into a masterpiece.
Before and after images live here, showcasing the power of our sorcery!
Marvel at the seamless transformation!
In this alchemy of pixels, we:
- Choose the visages to be swapped.
- Summon the dlib landmark detector to chart the mystical points.
- Connect the celestial dots, crafting triangular glyphs of power.
- Extract these sigils and cast them upon the images.
- Conjure the masks of identity swapping.
- Enchant the source's guise onto the destination's countenance.
- Polish the final visage to perfection.
Commence the incantation in your newly conjured Python environment:
# Conjure a fresh Python environment
conda create -p venv python=3.7 -y
# Step into the realm of the virtual environment
conda activate venv/
# Bestow the necessary magical components
pip install -r requirements.txt
# Awaken the web apparition
python app.py
Seek the oracle's wisdom at:
http://localhost:5000/
π Pro Tip: Opt for portraits with the face to the fore for an enchanting swap!
- Computer Vision for seeing the unseen.
- Dlib for the arcane arts of facial landmarks.
- openCV for weaving pixel spells.
- Flask for summoning web portals.
- Embellish portraits with mesmerizing effects.
- Create spells akin to Instagram and Snapchat filters.
Embark on a quest to infuse your images with enchantment, conjure your unique filters, and immerse in the sorcery of cv2!