{"id":22361673,"url":"https://github.com/sannjayy/php-face-recognition","last_synced_at":"2025-07-08T01:10:58.563Z","repository":{"id":225871938,"uuid":"765661129","full_name":"sannjayy/php-face-recognition","owner":"sannjayy","description":" PHP Face Recognition","archived":false,"fork":false,"pushed_at":"2024-03-05T17:24:50.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T14:52:19.456Z","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/sannjayy.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-03-01T11:15:09.000Z","updated_at":"2024-03-01T11:17:07.000Z","dependencies_parsed_at":"2024-12-04T16:34:52.395Z","dependency_job_id":"8dac1cb5-1f54-462f-89f2-850723d52155","html_url":"https://github.com/sannjayy/php-face-recognition","commit_stats":null,"previous_names":["sannjayy/php-face-recognition"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sannjayy/php-face-recognition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannjayy%2Fphp-face-recognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannjayy%2Fphp-face-recognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannjayy%2Fphp-face-recognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannjayy%2Fphp-face-recognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sannjayy","download_url":"https://codeload.github.com/sannjayy/php-face-recognition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannjayy%2Fphp-face-recognition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264171976,"owners_count":23567793,"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-12-04T16:31:47.395Z","updated_at":"2025-07-08T01:10:58.548Z","avatar_url":"https://github.com/sannjayy.png","language":"Python","readme":"# PHP Face Recognition Setup\n\n## Requirements\n\n1. **Dlib:**\n   - Follow the instructions in [How to Install Dlib Library for Python in Windows 10](https://medium.com/analytics-vidhya/how-to-install-dlib-library-for-python-in-windows-10-57348ba1117f) to install Dlib on your system.\n   - To check if Dlib is installed, run the following Python code:\n     ```python\n     import dlib\n     print(dlib.__version__)\n     ```\n\n2. **face-recognition:**\n   - Install the face-recognition library using pip:\n     ```bash\n     pip install face-recognition\n     ```\n\n## File Replacement\n\n1. **Open `face_compare.php`:**\n   - Open the `face_compare.php` file in a text editor.\n\n2. **Replace Image Paths:**\n   - Locate the lines containing:\n     ```php\n     $knownImage = \"img/real.jpg\";\n     $unknownImage = \"img/fake (2).jpg\";\n     ```\n   - Replace `\"img/real.jpg\"` and `\"img/fake (2).jpg\"` with the actual paths to your known and unknown images.\n   - **OR** Replace with Image URL \n    ```php\n     $knownImage = \"https://picsum.photos/200/300\";\n     $unknownImage = \"https://picsum.photos/200/300\";\n     ```\n\n3. **Save the Changes:**\n   - Save the changes to the `face_compare.php` file and execute.\n\n\n#### Ouput Example:\n```bash\nOUTPUT: (True, 0.8908031769038957)\n\nUser authenticated with confidence level: 89.08%\n-------------------------------------\nScript execution time: 2.23 seconds\n-------------------------------------\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsannjayy%2Fphp-face-recognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsannjayy%2Fphp-face-recognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsannjayy%2Fphp-face-recognition/lists"}