{"id":26248285,"url":"https://github.com/sankeer28/face-extractor","last_synced_at":"2025-03-13T14:17:52.869Z","repository":{"id":242552548,"uuid":"809873479","full_name":"sankeer28/Face-Extractor","owner":"sankeer28","description":"Python script that automates the process of detecting and extracting faces from images using MTCNN algorithm","archived":false,"fork":false,"pushed_at":"2024-06-03T18:29:44.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-04T18:55:19.840Z","etag":null,"topics":["face-detection","face-recognition","osint-python","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sankeer28.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-03T15:59:55.000Z","updated_at":"2024-06-03T18:29:47.000Z","dependencies_parsed_at":"2024-06-03T18:44:56.137Z","dependency_job_id":"aa53d64f-1fdc-43b1-9da3-9f99cb7a7da6","html_url":"https://github.com/sankeer28/Face-Extractor","commit_stats":null,"previous_names":["sankeer28/face-extractor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2FFace-Extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2FFace-Extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2FFace-Extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2FFace-Extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sankeer28","download_url":"https://codeload.github.com/sankeer28/Face-Extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243419082,"owners_count":20287807,"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-detection","face-recognition","osint-python","python"],"created_at":"2025-03-13T14:17:52.255Z","updated_at":"2025-03-13T14:17:52.861Z","avatar_url":"https://github.com/sankeer28.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Extractor\n```\n  _____                              _                  _             \n |  ___|_ _  ___ ___        _____  _| |_ _ __ __ _  ___| |_ ___  _ __ \n | |_ / _` |/ __/ _ \\_____ / _ \\ \\/ / __| '__/ _` |/ __| __/ _ \\| '__|\n |  _| (_| | (_|  __/_____|  __/\u003e  \u003c| |_| | | (_| | (__| || (_) | |   \n |_|  \\__,_|\\___\\___|      \\___/_/\\_\\\\__|_|  \\__,_|\\___|\\__\\___/|_|   \n                                                                      \n```\nThe Face Extractor is a Python script that automates the process of detecting and extracting faces from images. It utilizes the MTCNN (Multi-task Cascaded Convolutional Networks) algorithm for robust face detection and cropping.\n\n## Features\n\n- Automatic face detection and cropping from all images in specified folder.\n- Adjustable padding ratio around detected faces.\n- Customizable confidence threshold for controlling face detection sensitivity.\n- Supports various image formats including JPG, JPEG, and PNG.\n- Output folder organization: Each extracted face is saved with a unique identifier and placed in the output folder.\n\n## Uses\n- [MTCNN](https://github.com/ipazc/mtcnn): Multi-task Cascaded Convolutional Networks for face detection.\n- [OpenCV](https://opencv.org/): Open Source Computer Vision Library.\n- [NumPy](https://numpy.org/): Fundamental package for scientific computing with Python.\n- [Tensorflow](https://www.tensorflow.org/): Free and open-source software library for machine learning and artificial intelligence.\n  \n## Installation\n\n1. Clone the repository:\n\n```\nhttps://github.com/sankeer28/Face-Extractor.git\n```\n\n2. Install the required Python packages:\n\n```\npip install -r requirements.txt\n```\n\n## Usage\n\n```\noptions:\n  -h, --help            show this help message and exit\n  --input INPUT         Path to the input folder.\n  --output OUTPUT       Path to the output folder.\n  --padding PADDING     Padding ratio around the face (default: 0.2)\n  --confidence_threshold Confidence threshold for face detection (default: 0.8)\n  --annotate            Add numbers to detected faces on the output images.\n```\n\n- `--input`: Path to the input folder containing images.\n- `--output`: Path to the output folder where extracted faces will be saved.\n- `--padding`: Padding ratio around the detected faces (default: 0.2).\n- `--confidence_threshold`: Confidence threshold for face detection (default: 0.8).\n- `--annotate`: Add numbers to detected faces on the output images.\n\n## Examples\n\nExtract faces from images in the `input` folder and save them to the `output` folder with default settings:\n\n```\npython face_extractor.py --input input --output output\n```\n\n\n## Example\n\n#### Input image: \n![gettyimages-200244581-003-612x612](https://github.com/sankeer28/Face-Extractor/assets/112449287/3f00ea72-ea9d-401d-b020-42f886a672e9)\n\n#### Output:\n-  after running ` python face_extractor.py --input \"C:\\Users\\san\\Downloads\\Face-Extractor\" --output \"C:\\Users\\san\\Downloads\\Face-Extractor\\out\"`\n\n ![image](https://github.com/sankeer28/Face-Extractor/assets/112449287/6e4a6f8c-0286-4ff8-a47e-fa88792952dd)\n\n - after running ` python face_extractor.py --input \"C:\\Users\\san\\Downloads\\Face-Extractor\" --output \"C:\\Users\\san\\Downloads\\Face-Extractor\\out\" --annotate`\n   \n![gettyimages-200244581-003-612x612_annotated](https://github.com/sankeer28/Face-Extractor/assets/112449287/a2fbf5b3-f201-4476-8fb1-74e5588b5c3f)\n\n 80 faces were found\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankeer28%2Fface-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsankeer28%2Fface-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankeer28%2Fface-extractor/lists"}