Git Product home page Git Product logo

faceapi-website's Introduction

faceapi-website

License Snyk Vulnerabilities for GitHub Repo

This project, using faceapi, is a proof-of-concept website.
The HTML files are minimally styled, and minimal directions are provided for page navigation.

Important: This website is not designed for deployment, hence it is not secure by design.

Installation

  1. Read license terms before proceeding.

  2. Clone or download this repository and navigate to its folder.

$ git clone https://github.com/kennethsoh/faceapi-website.git
$ cd faceapi-website
  1. Install and set up node.js and mysql server.

  2. Install additional required npm modules

$ npm install body-parser express fs multer mysql rimraf
  1. Set up mysql server, creating 1 database: "logs", and 2 tables: "logs" and "users".
> CREATE DATABASE logs;
> CREATE TABLE IF NOT EXISTS logs.logs (`logid` INT NOT NULL AUTO_INCREMENT,`name` VARCHAR(64) NOT NULL,`date` VARCHAR(64) NOT NULL,PRIMARY KEY (`logid`));
> CREATE TABLE IF NOT EXISTS logs.users (`userid` INT NOT NULL AUTO_INCREMENT,`username` VARCHAR(64) NOT NULL,`password` VARCHAR(64) NOT NULL,`imagelink` VARCHAR(64) NOT NULL,PRIMARY KEY (`userid`));
  1. Depending on your mysql database setup, edit db_connection.js for the correct user and password.

Usage

  1. Start the node server and check that the database is connected
$ node server.js
Application listening at http://127.0.0.1:3000 ; enter CTRL + C to stop
Database Connected!
  1. Open a web browser and enter 127.0.0.1:3000 in the url bar. You may need to allow webcam access.

Features

Face Recognition

Use of faceapi, implemented on top of tensorflow.js core. This software is able to recognise faces and match them against uploaded images.

User Registration and Image Upload

Upload your own image for faceapi to recognise you. To do this, register for an account at 127.0.0.1:3000/register. Login to an exisitng account at 127.0.0.1:3000/login.

Note: Due to existing limitation, your image needs to be renamed to your username before upload. (i.e. If your username will be 'Alice', rename your image file to 'Alice.jpg'). JPG, JPEG and PNG file types are accepted.

User Management

Update your registered image and your password at 127.0.0.1:3000/user. You will only be able to access this page if there is an existing user session. You may also remove your image from the web server by deleting your account.

faceapi-website's People

Contributors

kennethsoh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.