Coder Social home page Coder Social logo

android_facenet's Introduction

Android_Facenet

Facenet for Android.

  • 编译环境:Android 3.1.2

  • 人脸检测:MTCNN类用法 (MTCNN.Java)

    • 类实例化 MTCNN mtcnn=new MTCNN(getAssets())
    • 只有1个API:public Vector detectFaces(Bitmap bitmap,int minFaceSize)
      • 参数bitmap:要处理的图片
      • 参数minFaceSize:最小的脸像素值,一般>=40。越大则检测速度越快,但会忽略掉较小的脸
      • 返回值:所有的脸的Box,包括left/right/top/bottom/landmark(一共5个点,嘴巴鼻子眼)
  • 人脸识别:FACENET类用法

    • FACENET facenet=new FACENET(getAssets())
    • 只有一个API:public FaceFeature recognizeImage(Bitmap bitmap)
      • 参数bitmap:要提取特征的人脸图片(一般先通过MTCNN检测人脸,然后crop出来)
      • 返回值:FaceFeature,人脸特征,我简单封装了一下;其实就是512维的特征向量(浮点数)
    • 人脸特征比较:即人脸特征向量的欧几里得距离。见FaceFeature.compare() 主要移植自:https://github.com/davidsandberg/facenet

运行效果:

Alt text

android_facenet's People

Contributors

vcvycy 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.