{"id":28240262,"url":"https://github.com/jarif87/face-morpher","last_synced_at":"2026-05-09T09:03:45.345Z","repository":{"id":293647391,"uuid":"984677693","full_name":"jarif87/Face-Morpher","owner":"jarif87","description":"Face Swap App: A Flask web app that swaps faces between two images using OpenCV and dlib, with a vibrant orange UI, image previews and responsive design.","archived":false,"fork":false,"pushed_at":"2025-05-16T12:20:59.000Z","size":427,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T14:10:34.394Z","etag":null,"topics":["face-swap","flask","html-css","image","opencv-python","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jarif87.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-16T10:19:47.000Z","updated_at":"2025-05-16T12:23:01.000Z","dependencies_parsed_at":"2025-05-16T12:39:38.402Z","dependency_job_id":null,"html_url":"https://github.com/jarif87/Face-Morpher","commit_stats":null,"previous_names":["jarif87/face-morpher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jarif87/Face-Morpher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarif87%2FFace-Morpher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarif87%2FFace-Morpher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarif87%2FFace-Morpher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarif87%2FFace-Morpher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jarif87","download_url":"https://codeload.github.com/jarif87/Face-Morpher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarif87%2FFace-Morpher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260907157,"owners_count":23080612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["face-swap","flask","html-css","image","opencv-python","python"],"created_at":"2025-05-19T03:12:54.715Z","updated_at":"2026-05-09T09:03:45.340Z","avatar_url":"https://github.com/jarif87.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Swap App\r\n\r\nA Flask-based web app that swaps faces between two uploaded images using OpenCV and dlib’s 68-face-landmarks predictor, featuring a vibrant orange gradient UI with image previews and animations.\r\n\r\n## Features\r\n- Upload source and destination images to swap faces.\r\n- Real-time previews for uploaded images.\r\n- Detects faces using dlib and swaps them with seamless cloning.\r\n- Responsive design with orange gradient theme and hover effects.\r\n- Error handling for missing files or undetected faces.\r\n- Made by Sadik Al Jarif in the navbar.\r\n\r\n## Prerequisites\r\n- Python 3.8+\r\n- pip\r\n- Git (optional)\r\n- dlib dependencies (cmake, libopenblas)\r\n\r\n## Installation\r\n\r\n1. **Clone or download the project:**\r\n\r\n```\r\ngit clone \u003crepository-url\u003e\r\ncd face-swap-app\r\n```\r\n\r\n2. **Create and activate a virtual environment:**\r\n\r\n```\r\npython -m venv venv\r\nsource venv/bin/activate  \r\n```\r\n\r\n3. **Install dependencies:**\r\n\r\n```\r\necho -e \"flask\\nopencv-python\\nnumpy\\npillow\\nwerkzeug\\ndlib\" \u003e requirements.txt\r\npip install -r requirements.txt\r\n```\r\n\r\n4. **For dlib on Ubuntu:**\r\n\r\n```\r\nsudo apt-get install build-essential cmake libopenblas-dev liblapack-dev libx11-dev libgtk-3-dev\r\n```\r\n\r\n5. **On Windows, install Visual Studio Build Tools or use a precompiled dlib wheel.**\r\n\r\n\r\n### Set up directories:\r\n\r\n- Add required files:\r\n\r\n- Place shape_predictor_68_face_landmarks.dat in static/dat/.\r\n\r\n- Place white_bg.jpg in static/images/.\r\n\r\n- Use app.py, templates/index.html, static/style.css, requirements.txt from previous responses.\r\n\r\n\r\n# Project Structure\r\n\r\n```\r\nface-swap-app/\r\n├── static/\r\n│   ├── dat/\r\n│   │   ├── shape_predictor_68_face_landmarks.dat  # dlib face landmarks\r\n│   ├── uploads/                                  # Processed images\r\n│   ├── images/\r\n│   │   ├── white_bg.jpg                          # Default image\r\n│   ├── style.css                                 # Custom styles\r\n├── templates/\r\n│   ├── index.html                                # HTML template\r\n├── app.py                                        # Flask app\r\n├── requirements.txt                              # Dependencies\r\n├── README.md                                     # This file\r\n```\r\n\r\n# Usage\r\n\r\n### Run the app:\r\n\r\n```\r\npython app.py\r\nhttp://127.0.0.1:5000\r\n```\r\n\r\n- Upload images:\r\n\r\n- Select source image (face to swap).\r\n\r\n- Select destination image (target face).\r\n\r\n- View previews.\r\n\r\n- Click \"Swap\" to see the result.\r\n\r\n- Errors (e.g., missing files, no faces) display below cards.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarif87%2Fface-morpher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarif87%2Fface-morpher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarif87%2Fface-morpher/lists"}