{"id":15662475,"url":"https://github.com/tismoney/faceswapping","last_synced_at":"2025-10-09T01:38:39.388Z","repository":{"id":75608209,"uuid":"226681273","full_name":"Tismoney/FaceSwapping","owner":"Tismoney","description":"Project of Skoltech course \"Introduction to Computer Vision\"","archived":false,"fork":false,"pushed_at":"2019-12-28T21:53:16.000Z","size":24098,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T01:40:07.667Z","etag":null,"topics":["cv2","face-detection","face-swapping","haar-cascade","keypoint-detection","opencv-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/Tismoney.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}},"created_at":"2019-12-08T14:36:05.000Z","updated_at":"2023-10-07T17:31:03.000Z","dependencies_parsed_at":"2023-06-07T02:00:15.051Z","dependency_job_id":null,"html_url":"https://github.com/Tismoney/FaceSwapping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tismoney/FaceSwapping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tismoney%2FFaceSwapping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tismoney%2FFaceSwapping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tismoney%2FFaceSwapping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tismoney%2FFaceSwapping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tismoney","download_url":"https://codeload.github.com/Tismoney/FaceSwapping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tismoney%2FFaceSwapping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000716,"owners_count":26082895,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cv2","face-detection","face-swapping","haar-cascade","keypoint-detection","opencv-python"],"created_at":"2024-10-03T13:32:48.742Z","updated_at":"2025-10-09T01:38:39.354Z","avatar_url":"https://github.com/Tismoney.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fase Swapping\n\n\n## Step-by-step solution\nBased on this [solution](https://pysource.com/2019/05/28/face-swapping-explained-in-8-steps-opencv-with-python/).\n### 1. Face detection\n![step_1](./imgs/step_1.png)\n\n### 2. Keypoints detection\n![step_2](./imgs/step_2.png)\n\n### 3. Face cropping\n![step_3](./imgs/step_3.png)\n\n### 4. Face triangulation\n![step_4](./imgs/step_4.png)\n\n### 5. Reconstruction new face\n![step_5_idea](./imgs/step_5.png)\n![step_5_gif](./imgs/step_5.gif)\n\n### 6. Pull up new face\n![step_5_end](./imgs/step_6.png)\n\n### 6. Seamless Cloning\n![step_5_end](./imgs/step_7.png)\n\n\n## Examples\n![ex1](./imgs/result_two.png)\n\n## Techology part\nThe most of the algorithms are written using [openCV](https://pypi.org/project/opencv-python/)\n\n* Face detection: **Haar Cascade**\n* Keypoint detection: **The cascade of regressors** using [dlib](http://dlib.net) based on this [paper](http://www.nada.kth.se/~sullivan/Papers/Kazemi_cvpr14.pdf)\n* Face triangulation: simple **Triangulation**\n* Reconstruction: **Affine projection** each triangles \n* Color alignment: **Seamless Cloning** ([details](http://amroamroamro.github.io/mexopencv/opencv/cloning_demo.html))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftismoney%2Ffaceswapping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftismoney%2Ffaceswapping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftismoney%2Ffaceswapping/lists"}