Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sannjayy/php-face-recognition
PHP Face Recognition
https://github.com/sannjayy/php-face-recognition
Last synced: 30 days ago
JSON representation
PHP Face Recognition
- Host: GitHub
- URL: https://github.com/sannjayy/php-face-recognition
- Owner: sannjayy
- Created: 2024-03-01T11:15:09.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-05T17:24:50.000Z (10 months ago)
- Last Synced: 2024-03-05T19:21:45.772Z (10 months ago)
- Language: Python
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Face Recognition Setup
## Requirements
1. **Dlib:**
- 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.
- To check if Dlib is installed, run the following Python code:
```python
import dlib
print(dlib.__version__)
```2. **face-recognition:**
- Install the face-recognition library using pip:
```bash
pip install face-recognition
```## File Replacement
1. **Open `face_compare.php`:**
- Open the `face_compare.php` file in a text editor.2. **Replace Image Paths:**
- Locate the lines containing:
```php
$knownImage = "img/real.jpg";
$unknownImage = "img/fake (2).jpg";
```
- Replace `"img/real.jpg"` and `"img/fake (2).jpg"` with the actual paths to your known and unknown images.
- **OR** Replace with Image URL
```php
$knownImage = "https://picsum.photos/200/300";
$unknownImage = "https://picsum.photos/200/300";
```3. **Save the Changes:**
- Save the changes to the `face_compare.php` file and execute.#### Ouput Example:
```bash
OUTPUT: (True, 0.8908031769038957)User authenticated with confidence level: 89.08%
-------------------------------------
Script execution time: 2.23 seconds
-------------------------------------
```