Coder Social home page Coder Social logo

arcsoft's Introduction

Arcsoft

http://www.arcsoft.com.cn/index.html
由于官网提供的demo是c语言版本的,使用起来不怎么友好。于是,该项目按照官网提供的c版本demo,基于python3,实现了人脸检测,年龄,性别识别功能。

Dependencies

  1. Python3
  2. pillow
  3. arcsoft sdk 1.11
  4. app id和key

Deploy

整个项目目录结构如structure.png所示:

  1. pip install -r requirements
  2. 去arcsoft官网申请sdk以及sdk对应的key(完全免费无限制)
  3. 将下载好的sdk放到sdk目录下
  4. 将申请的app id以及key填写到conf/config.ini

Run

python my_face.py

Comparison

人脸检测做的比较好的有face++,感兴趣的可以去face++官网申请使用

  1. 质量
    和face++的人脸检测做了对比,发现识别效果差不多,并没有明显区别(极端情况除外,侧脸角度特别大的话,arcsoft识别不到人脸,face++还可以正常识别)。
  2. 速度
    arcsoft是离线sdk,速度上比face++快了1-2个数量级,并且qps没有限制(face++只提供API服务,qps有限制,个人qps是2,企业版是10)。

Instruction

  1. 官网提供的sdk有两个版本,1.11和2.0,两个版本的使用有区别,该项目所用的版本是1.11
  2. face_detect.py是人脸检测的代码,年龄、性别、人脸对比等功能均基于人脸检测,所以将该功能单独封装成一个文件
  3. 该项目只现实了人脸检测,年龄,性别功能,其他功能如人脸对比没有实现,有需求的可以仿照代码自己实现
  4. 该项目在linux x64,python3环境下测试没有问题,windows环境下可能需要稍微改造,有需求的可以仿照代码自己实现

arcsoft's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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