{"id":25517505,"url":"https://github.com/itx-jd/face-comparison-api-url-base64","last_synced_at":"2025-08-18T15:10:29.392Z","repository":{"id":255864160,"uuid":"853774651","full_name":"itx-jd/face-comparison-api-url-base64","owner":"itx-jd","description":"A Flask API for comparing faces using DeepFace. Supports image URLs and base64 input for easy facial comparison.","archived":false,"fork":false,"pushed_at":"2025-02-08T20:34:22.000Z","size":3329,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T04:09:40.104Z","etag":null,"topics":["api","base64","deepface","face-comparison","face-verification","facial-recognition","flask-api","image-comparison","image-processing","machine-learning","security"],"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/itx-jd.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":"2024-09-07T13:57:55.000Z","updated_at":"2025-02-08T20:38:34.000Z","dependencies_parsed_at":"2025-02-08T21:32:11.757Z","dependency_job_id":null,"html_url":"https://github.com/itx-jd/face-comparison-api-url-base64","commit_stats":null,"previous_names":["itx-jd/face-comparison","itx-jd/face-comparison-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itx-jd/face-comparison-api-url-base64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itx-jd%2Fface-comparison-api-url-base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itx-jd%2Fface-comparison-api-url-base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itx-jd%2Fface-comparison-api-url-base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itx-jd%2Fface-comparison-api-url-base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itx-jd","download_url":"https://codeload.github.com/itx-jd/face-comparison-api-url-base64/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itx-jd%2Fface-comparison-api-url-base64/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271012598,"owners_count":24684572,"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-08-18T02:00:08.743Z","response_time":89,"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":["api","base64","deepface","face-comparison","face-verification","facial-recognition","flask-api","image-comparison","image-processing","machine-learning","security"],"created_at":"2025-02-19T15:35:18.331Z","updated_at":"2025-08-18T15:10:29.353Z","avatar_url":"https://github.com/itx-jd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Comparison API\n\n**Face Comparison API** is a simple, powerful Flask-based solution for comparing two images to determine if they feature the same person. Powered by **DeepFace**, this API allows you to easily compare faces with just a URL or base64-encoded image data.\n\n## 🚀 Key Features\n\n- **Flexible Input**: Supports image URLs or base64 strings.\n- **Accurate Comparison**: Uses DeepFace for precise facial recognition.\n- **Easy Integration**: Simple API with minimal setup.\n- **Automatic Cleanup**: Handles image processing and temporary files.\n- **Error Handling**: Well-defined error responses for smooth use.\n\n## 🎯 Use Cases\n\n- **Identity Verification**: Secure face-based authentication.\n- **Security \u0026 Access Control**: Enhance security systems with face recognition.\n- **Facial Recognition Projects**: Easily integrate face comparison in any app.\n\n## 💻 API Endpoint \u0026 Usage\n`POST /verify`\n### Request Body Example\n```json\n{\n  \"base_image\": \"https://example.com/base_image.jpg\",\n  \"comparison_image\": \"https://example.com/comparison_image.jpg\"\n}\n```\nAlternatively, you can use base64-encoded images:\n```json\n{\n  \"base_image_base64\": \"your_base64_encoded_image_here\",\n  \"comparison_image_base64\": \"your_base64_encoded_image_here\"\n}\n```\nNote: You can provide either URLs or base64 strings for the images, but not both.\n\n### Response Example\n```json\n{\n  \"verified\": true,\n  \"distance\": 0.23\n}\n```\n### Error Response Example\n```json\n{\n  \"error\": \"Both base_image and comparison_image URLs are required.\"\n}\n```\n\n## 🛠️ Installation \u0026 Setup\n1. Clone the repository.\n2. Install required dependencies with pip install -r requirements.txt.\n3. Run the app with python app.py.\n4. The server will be running on `http://localhost:3000` by default.\n\n\n## ⚡ Why Use This API?\n\n- **Fast \u0026 Reliable**: Get quick and accurate results.\n- **Portable**: Simple setup, deploy, and use.\n- **Cost-Effective**: Open-source and lightweight solution.\n\nStart comparing faces today with **Face Comparison API** — fast, easy, and accurate facial recognition.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitx-jd%2Fface-comparison-api-url-base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitx-jd%2Fface-comparison-api-url-base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitx-jd%2Fface-comparison-api-url-base64/lists"}