Code Monkey home page Code Monkey logo

baiduface's Introduction

工具 github logo

封装百度人脸识别客户端

在封装百度人脸识别客户端,实现对人脸以及人脸所对应的用户的增删改查。

工具用法

在message.properties配置文件中,配置关于百度应用的信息。配置的内容如下

# 百度人脸识别
baidu.app_id=百度应用ID
baidu.api_key=应用账号
baidu.secret_key=应用密码

新建一个百度应用,即可查看到以上信息

然后调用AipFaceUtil中的getAipFace方法即可获取到一个百度应用客户端。

但是,在FaceRecognitionUtil中,已经获取到了百度应用客户端,只需要使用其中的方法便可以实现对用户以及用户人脸的操作。

FaceRecognitionUtil中方法的介绍

1、uploadPace

向人脸库中增加一个用户信息(包含人脸)

2、searchFace

传入用户人脸图片的Base64编码,查找评分最高的用户信息并返回

3、deleteFace

删除用户信息(包含人脸),传入的是用户标识

4、changeUserIdentified

修改用户标识信息

baiduface's People

Contributors

lightingsui avatar

Watchers

James Cloos 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.