louisondumont/facematch
소개
Facebook Face Recognition wrapper. Submit an image, query Facebook to recognize your friends' faces.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHi
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
- Facebook App ID / App Secret (register a new app here: https://developers.facebook.com/apps)
- An active Facebook Account with friends (Facebook only recognizes your friends)
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.

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

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

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)

YAY! Now you can do like Mark and build your intelligent house.
관련 프로젝트 살펴보기
불러오는 중…