How to run face recognition project in XAMPP server with Webcam?

July 11, 2021
httpswww.softwarequery.com-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.

  1. Real-time face this is certain people in Webcam video clip.
  2. Whenever a face is recognized bring its image then from Webcam.
  3. Upload the image to the server.
  4. 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.

  1. Install Pico.js Face Detection Library
  2. Install pico.js library from GitHub.
  3. Plant the .zip file inside your project folder.
  4. 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-4 Create a save.php file and write a code about save images on the server and database.


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