https://github.com/shibam120302/face_swap_flask_app
Face Swap is a public Python project that enables you to swap faces with someone. It can be used with photos, videos, and even a live camera.
https://github.com/shibam120302/face_swap_flask_app
juypter-notebook keras opencv pillow python
Last synced: 7 months ago
JSON representation
Face Swap is a public Python project that enables you to swap faces with someone. It can be used with photos, videos, and even a live camera.
- Host: GitHub
- URL: https://github.com/shibam120302/face_swap_flask_app
- Owner: shibam120302
- Created: 2022-12-31T03:22:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T03:31:12.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T17:50:44.943Z (9 months ago)
- Topics: juypter-notebook, keras, opencv, pillow, python
- Language: Jupyter Notebook
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face Swap Flask App
Most of you would have used or seen many filters that let you swap your face with your friends, celebrities or even animals. These filters are very popular in social media platforms such as Instagram, Snapchat and face app. Have you ever wondered how this is done? With Python and OpenCV it is actually very simple to build this application. The concept behind this is to detect certain points on the face and then replace it with the swapping image. Though simple, it does involve a lot of factors like lighting, facial structure and camera angle. To avoid these complications, we will implement this on two images of celebrities.
In this article, we will implement a face-swapping technique for two images of celebrities using OpenCV and python.
### Steps used for this project:
1.Taking two images – one as the source and another as a destination.
2.Using the dlib landmark detector on both these images.
3.Joining the dots in the landmark detector to form triangles.
4.Extracting these triangles.
5.Placing the source image on the destination.
6.Smoothening the face.