Giter Club home page Giter Club logo

facematch's Introduction

Hi

Here's Facematch, a wrapper for the Facebook Face Recognition feature. I coded it super quickly to recognize my friends when they ring at the door. This is very simple at the moment and there's much to improve (almost no error handlers).

How does it work?

When you upload a picture on Facebook, the /photos/tagging/recognition endpoint is called. This program uploads a private picture (using Facebook API) + calls the recognition endpoint (by simulating a browser using the user's information).

Requirements

Getting Started

I) Install
$ git clone https://github.com/louisondumont/facematch
$ cd facematch
$ npm install
II) Edit config.js

1) Insert your App ID and Secret

2) Go to Facebook, open DevTools > Network.

3) Upload any picture but don't press "Post".

4) Look for the "recognition" endpoint. Network screenshot

5) "Request" > copy-paste the entire "cookie" string in config.js

Cookie screenshot

6) "Form" (raw source) > copy-paste everything from "__user=" in config.js (req_params) Req screenshot

III) Start the server

You can change the http port in config.js

$ node index.js
IV) Get your access token

Navigate to http://localhost:3000/getAccessToken and give access to your Facebook account.

V) Recognize people

POST http://localhost:3000/recognize (accessToken = YOUR_ACCESS_TOKEN, url = YOUR_IMG_URL)

Screenshot query

YAY! Now you can do like Mark and build your intelligent house.

facematch's People

Watchers

Arash Archor 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.