How to run face recognition project in XAMPP server with Webcam?
We are creating a face recognition project in the XAMPP server with Webcam.
The usage of this library is javaScript detects a person's face in cam feed. A thing this is certainly interesting that this library is is made of just around 200 lines of the signal. This means that it is very easy and lightweight to utilize inside web tasks.
- Real-time face this is certain people in Webcam video clip.
- Whenever a face is recognized bring its image then from Webcam.
- Upload the image to the server.
- Save image path in the database so it later that people can display.
Let's Start the project Step to Step
Step -1. Create a database with a table using phpMyAdmin or below SQL.
CREATE DATABASE face_detection_project;
Step-2. First of all, develop a folder on your environment this is certainly local.g. inside XAMPP “htdocs” folder).
Name it whatever you fancy. But, with regard to this guide, I’ll name it face_detection_project.
Fundamentally, it shall be utilized to put on our task files and files.
- Install Pico.js Face Detection Library
- Install pico.js library from GitHub.
- Plant the .zip file inside your project folder.
- Now, replace the name associated with the folder this is certainly extracted picojs.
Step-3 Create an index.php file and inside write a PHP code.
Step -3 create a database file for db_connect.php
Step-5 Create a view.php file
Create a folder known as photos inside the task root. Our detected face photos will here be published.
Open up XAMPP or other PHP development environment that is local. Now, start Apache and MySQL.
Finally, open the project by typing this URL in your online browser’s target club: localhost/face_detection_project

Comments