{"id":15009410,"url":"https://github.com/theankurgoswami/face-recognition-using-facenet","last_synced_at":"2025-04-09T17:23:57.373Z","repository":{"id":38826598,"uuid":"204533063","full_name":"TheAnkurGoswami/Face-Recognition-using-FaceNet","owner":"TheAnkurGoswami","description":"This face recognition system is implemented upon a pre-trained FaceNet model achieving a state-of-the-art accuracy. This system comes with both Live recognition \u0026 Image recognition.","archived":false,"fork":false,"pushed_at":"2023-03-24T23:16:06.000Z","size":9455,"stargazers_count":21,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T19:23:12.910Z","etag":null,"topics":["computer-vision","deep-learning","face-detection","face-recognition","facenet-model","opencv-python","python-3-6"],"latest_commit_sha":null,"homepage":"","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/TheAnkurGoswami.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-08-26T18:07:05.000Z","updated_at":"2025-03-08T14:05:58.000Z","dependencies_parsed_at":"2024-10-12T09:21:42.321Z","dependency_job_id":"5273f378-58c1-4357-a607-8c1dec5d0b2c","html_url":"https://github.com/TheAnkurGoswami/Face-Recognition-using-FaceNet","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.046511627906976716","last_synced_commit":"972e3231ec7a9dac428b586cb0852e478df22406"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAnkurGoswami%2FFace-Recognition-using-FaceNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAnkurGoswami%2FFace-Recognition-using-FaceNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAnkurGoswami%2FFace-Recognition-using-FaceNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAnkurGoswami%2FFace-Recognition-using-FaceNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAnkurGoswami","download_url":"https://codeload.github.com/TheAnkurGoswami/Face-Recognition-using-FaceNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075496,"owners_count":21043597,"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":["computer-vision","deep-learning","face-detection","face-recognition","facenet-model","opencv-python","python-3-6"],"created_at":"2024-09-24T19:25:02.785Z","updated_at":"2025-04-09T17:23:57.351Z","avatar_url":"https://github.com/TheAnkurGoswami.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face-Recognition-using-FaceNet\n\n\nThis face recognition system is implemented upon a pre-trained FaceNet model achieving a state-of-the-art accuracy.\nThe system comes with\nboth Live recognition \u0026 Image recognition.\nIt is trained on faces of some celebrities.\n\nFor any queries Contact: [Ankur Goswami](https://github.com/Ankur1401/)\n\n\n* __Installing dependencies:__\n  * For Anaconda users: `conda install --file requirements.txt`\u003cbr\u003e\n  * For python users: `pip install -r requirements.txt`\u003cbr\u003e\n    (even Anaconda users can use this if they use anaconda prompt instead of terminal)\n\n* __Downloading the model__:\u003cbr\u003e\n  The repository requires an additional file to work. The file is too large to upload here.\n  So I've provided a Google Drive link of it. Download the file and keep it inside [`/data/model/`](https://github.com/Ankur1401/Face-Recognition-using-FaceNet/tree/master/data/model) directory.\u003cbr\u003e [Click Here](https://drive.google.com/open?id=1PZ_6Zsy1Vb0s0JmjEmVd8FS99zoMCiN1)  to download the file.\n  \n* __Training on other faces:__ \u003cbr\u003e\nTo train model on different faces, follow the given steps:\u003cbr\u003e\n  1. Put the images containing clear frontal face in [`/data/images/`](https://github.com/Ankur1401/Face-Recognition-using-FaceNet/tree/master/data/images) directory.\n  1. Open the repository directory in terminal and run following commands in given order:\n     1. `cd script`\n     1. `python generate_data.py`\n  1. Follow program instructions.\n  \n* __Testing/Detecting faces:__ \u003cbr\u003e\n  1. __Face Recognition from Images__:\n     1. Put the images containing the faces to predict in [`/test/`](https://github.com/Ankur1401/Face-Recognition-using-FaceNet/tree/master/test) directory.\n     1. Open the repository directory in terminal and run following command:\n      ```\n          python image_recognition.py\n      ```\n     1. Output images will then be available in [`/test/predicted/`](https://github.com/Ankur1401/Face-Recognition-using-FaceNet/tree/master/test/predicted) directory.\n   \n  1. __Live Face Recognition(Obviously using camera):__\n   \u003cbr\u003eOpen the repository directory in terminal and run following command:\n      ```\n      python live_recognition.py\n      ```\n\n## Examples:\n\n__NOTE:__ Faces with __Unidentified__ labels are faces on which the model is not trained.\n\n__Example #1:__\n\u003cbr\u003eBefore:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/vampire-diaries.jpg width=50%\u003e\n\u003cbr\u003eAfter:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/predicted/vampire-diaries.jpg width=50%\u003e\n\n__Example #2:__\n\u003cbr\u003eBefore:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/the-avengers-walt03.jpg width=50%\u003e\n\u003cbr\u003eAfter:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/predicted/the-avengers-walt03.jpg width=50%\u003e\n\n__Example #3:__\n\u003cbr\u003eBefore:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/2ec945ecd5f7c08789f3ef5da5287410.jpg width=50%\u003e\n\u003cbr\u003eAfter:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/predicted/2ec945ecd5f7c08789f3ef5da5287410.jpg width=50%\u003e\n\n__Example #4:__\n\u003cbr\u003eBefore:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/3840x2160-avengers-cast-photocall-moscow-05.JPG width=75%\u003e\n\u003cbr\u003eAfter:(Need to zoom)\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/predicted/3840x2160-avengers-cast-photocall-moscow-05.JPG width=75%\u003e\n\n__Example #5:__\n\u003cbr\u003eIn this example, the model was trained on faces of my friends.\n\u003cbr\u003eBefore:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/00000PORTRAIT_00000_BURST20180310144236486.jpg width=75%\u003e\n\u003cbr\u003eAfter:\u003cbr\u003e\n\u003cimg src=https://github.com/Ankur1401/Face-Recognition-using-FaceNet/blob/master/test/predicted/00000PORTRAIT_00000_BURST20180310144236486.jpg width=75%\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheankurgoswami%2Fface-recognition-using-facenet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheankurgoswami%2Fface-recognition-using-facenet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheankurgoswami%2Fface-recognition-using-facenet/lists"}