GithubHelp home page GithubHelp logo

victorqribeiro / facerecognition Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 3.0 10.26 MB

A face recognition in JavaScript using my neural network

License: MIT License

HTML 17.39% CSS 1.06% JavaScript 81.55%
face-detection face-recognition neural-network multilayer-perceptron neural-networks javascript

facerecognition's Introduction

faceRecognition

A face recognition experiment in JavaScript using my neural network.

groupImg

About

This experiment is a collection of "tools" to help create image data using the webcam in your browser. The video above shows how I trained a model to recognize me in front of the computer. Later, I'll may capture hand gestures and atribute meaning to it like: play a song or scroll the page. I do thing I'll need to make some improvements to my MLP code to make it more robust, but that'll come with time.

Capture Data

captureData.html - Get image data from the webcam.

on the label input, entry the label in the one-hot encoded hormat. e.g.: [1,0] if something is A - [0,1] if something is B.

How to use it

c - capture the current frame and add it to the data set.
s - save the data set (x, y) as x and y .json files.
u - undo. remove the last entry from the data set.

Fit Data

fitData.html - Train the neural network with the data created in captureData.html

Test Data

testData.html - Test the neural network with new images from the webcam.

Important Info

The nn.json model provided in this repo may not work for you, since it was only trained with 80 images of myself. 40 images of me in front of the computer, 40 of me not in front of the computer. The images ware scale to 32x24 pixels before training and during test.

facerecognition's People

Contributors

victorqribeiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.