Code Monkey home page Code Monkey logo

face-detection's Introduction

Face Overlay App

“GitHub

👨 👩 An app to detect facial attributes (with focus on the eyes), on a human and append a pair of glasses or harlequin mask.

Setting things up

Clone the repository

$ git clone [email protected]:unicodeveloper/face-detection.git

Install Dependencies

Before continuing, this app requires node $ npm installed on your machine. Once you have confirmed your node installation,

  • Change directory into the server directory of the app
$ cd face-detection/server
  • Install npm packages
$ npm install
  • Set up http server To render our static html files, you could use a simple http server like http-server. To install run the command
$ npm install http-server -g

Working with Cloudinary

This application is dependent on Cloundary's API. To continue, you will need to sign up here. Once that's done, on your console fetch your cloud_name, api_key, api_secret and then add them to your index.js file located in the server/ directory.

NB:

  • You also need to activate Advanced Facial Attributes on your cloudinary account - don't worry it's 'kinda' free 😜 .
  • You need to upload the images from the assets directory to your media library and rename them to glasses and harlequinmask since those are the two masks we are considering

Running things

To run the app, in the root directory of our app we start our backend server with this command

$ node server

You'll get a response like

Listening on localhost:3333

This means your backend server is running on http://localhost:3333/

You also need to run your http-server by using the command

$ http-server

Once that's done, you get a response like

Starting up http-server, serving ./public
Available on:
  http://127.0.0.1:8080
  http://172.20.10.9:8080

Now you can navigate to http://127.0.0.1:8080/ to see the app at work 😇

License

MIT

face-detection's People

Contributors

orehga avatar unicodeveloper avatar

Stargazers

 avatar

Watchers

 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.