{"id":17912642,"url":"https://github.com/danielgatis/facematch","last_synced_at":"2025-07-24T10:11:13.569Z","repository":{"id":38824991,"uuid":"296162857","full_name":"danielgatis/facematch","owner":"danielgatis","description":"Facematch is a tool to verifies if two photos contain the same person.","archived":false,"fork":false,"pushed_at":"2021-03-19T01:07:34.000Z","size":2508,"stargazers_count":77,"open_issues_count":2,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T00:06:38.955Z","etag":null,"topics":["face","face-recognition","identity","liveness","python","recognition"],"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/danielgatis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-16T22:41:18.000Z","updated_at":"2025-01-20T11:11:13.000Z","dependencies_parsed_at":"2022-09-19T04:20:29.702Z","dependency_job_id":null,"html_url":"https://github.com/danielgatis/facematch","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/danielgatis%2Ffacematch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Ffacematch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Ffacematch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Ffacematch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgatis","download_url":"https://codeload.github.com/danielgatis/facematch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245180281,"owners_count":20573642,"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","face-recognition","identity","liveness","python","recognition"],"created_at":"2024-10-28T19:46:19.710Z","updated_at":"2025-03-23T22:34:45.096Z","avatar_url":"https://github.com/danielgatis.png","language":"Python","funding_links":["https://www.buymeacoffee.com/danielgatis"],"categories":[],"sub_categories":[],"readme":"# Facematch\n\n[![Downloads](https://pepy.tech/badge/facematch)](https://pepy.tech/project/facematch)\n[![Downloads](https://pepy.tech/badge/facematch/month)](https://pepy.tech/project/facematch/month)\n[![Downloads](https://pepy.tech/badge/facematch/week)](https://pepy.tech/project/facematch/week)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://img.shields.io/badge/License-MIT-blue.svg)\n\nFacematch is a tool to verifies if two photos contain the same person.\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003ctd\u003einput1\u003c/td\u003e\n            \u003ctd\u003einput2\u003c/td\u003e\n            \u003ctd\u003eoutput\u003c/td\u003e\n            \u003ctd\u003eresult\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel1.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/doc.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel1-doc.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cspan\u003e{\"match\": true, \"distance\": 0.38913072553055295}\u003c/span\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel2.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/doc.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel2-doc.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cspan\u003e{\"match\": true, \"distance\": 0.5131670729305189}\u003c/span\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel1.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel2.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel1-daniel2.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cspan\u003e{\"match\": true, \"distance\": 0.4370069082351905}\u003c/span\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/ronaldinho1.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/doc.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/ronaldinho1-doc.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cspan\u003e{\"match\": false, \"distance\": 0.7838337220196059}\u003c/span\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel1.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/ronaldinho1.jpg\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/danielgatis/facematch/master/examples/daniel1-ronaldinho1.png\" width=\"100\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cspan\u003e{\"match\": false, \"distance\": 0.8705370438394476}\u003c/span\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n### Installation\n\nInstall it from pypi\n\n```bash\n    pip install facematch\n```\n\n### Usage as a cli\n\nWithout output image\n```bash\n    facematch input1.png input2.png\n```\n\nWith output image\n```bash\n    facematch -o output.png input1.png input2.png\n```\n\n### Usage as a library\n\nIn `app.py`\n\n```python\n    from facematch.face import match\n\n    f = open('img1.png', 'rb')\n    data1 = f.read()\n    f.close()\n\n    f = open('img2.png', 'rb')\n    data2 = f.read()\n    f.close()\n\n    result, distance, data = match(data1, data2)\n\n    f = open('out.png', 'wb')\n    f.write(data)\n    f.close()\n\n    print(distance)\n    print(result)\n```\n\nThen run\n```\n    python app.py\n```\n\n### License\n\nCopyright (c) 2020-present [Daniel Gatis](https://github.com/danielgatis)\n\nLicensed under [MIT License](./LICENSE.txt)\n\n### Buy me a coffee\n\nLiked some of my work? Buy me a coffee (or more likely a beer)\n\n\u003ca href=\"https://www.buymeacoffee.com/danielgatis\" target=\"_blank\"\u003e\u003cimg src=\"https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Ffacematch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgatis%2Ffacematch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Ffacematch/lists"}