| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

facematch - 非死book人脸识别封装

facematch - 非死book人脸识别封装。提前一张图片,然后查询非死book来识别你朋友的脸部。

Hi

Here's Facematch, a wrapper for the 非死book 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 非死book, the /photos/tagging/recognition endpoint is called. This program uploads a private picture (using 非死book 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 非死book, 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 非死book 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.

项目地址: https://github.com/louisondumont/facematch

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1452256453214.html
facematch 计算机视觉库/人脸识别