{"id":17950955,"url":"https://github.com/brucemacd/face-swap-opencv","last_synced_at":"2025-10-04T06:30:40.933Z","repository":{"id":85118721,"uuid":"165473071","full_name":"BruceMacD/Face-Swap-OpenCV","owner":"BruceMacD","description":"A basic face-swap implementation using OpenCV and dlib.","archived":false,"fork":false,"pushed_at":"2019-02-15T07:16:40.000Z","size":72107,"stargazers_count":15,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-20T02:43:21.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/BruceMacD.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-01-13T06:22:33.000Z","updated_at":"2023-12-25T07:45:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"86342ca4-69fd-4f76-b89e-259399212359","html_url":"https://github.com/BruceMacD/Face-Swap-OpenCV","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceMacD%2FFace-Swap-OpenCV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceMacD%2FFace-Swap-OpenCV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceMacD%2FFace-Swap-OpenCV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceMacD%2FFace-Swap-OpenCV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BruceMacD","download_url":"https://codeload.github.com/BruceMacD/Face-Swap-OpenCV/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235222566,"owners_count":18955330,"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":[],"created_at":"2024-10-29T09:41:34.446Z","updated_at":"2025-10-04T06:30:30.923Z","avatar_url":"https://github.com/BruceMacD.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face-Swap-OpenCV\n![face swap sample](https://raw.githubusercontent.com/BruceMacD/Face-Swap-OpenCV/master/images/face_swapped.png)\n\nThis is a basic face-swap implementation using OpenCV. Check out the code for a step-by-step explanation.\n\n## Usage\n./face_swap.py -i \u003cdata/input1.jpg\u003e -i \u003cdata/input2.jpg\u003e\n\n```\n./face_swap.py -i data/headshot1.jpg -i data/headshot2.jpg\n```\n\n## Requirements\n* OpenCV v3.0+\n* numpy\n* dlib (for the landmark detection)\n* Python 3\n\n## Sources\nBased on the work of Satya Mallick\n\nhttps://www.learnopencv.com/face-swap-using-opencv-c-python/\n\nFacial landmarks\n\nhttps://www.pyimagesearch.com/2017/04/03/facial-landmarks-dlib-opencv-python/\n\nHead shot 1\n\nhttps://www.pexels.com/photo/adult-attractive-beautiful-beauty-415829/\n\nHead shot 2\n\nhttps://www.pexels.com/photo/man-wearing-black-zip-up-jacket-near-beach-smiling-at-the-photo-736716/\n\n![delauney triangulation](https://github.com/BruceMacD/Face-Swap-OpenCV/blob/master/images/delauney_landmarks.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucemacd%2Fface-swap-opencv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrucemacd%2Fface-swap-opencv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucemacd%2Fface-swap-opencv/lists"}