Giter VIP home page Giter VIP logo

ios-mobilefacenet-mtcnn-faceantispoofing's Introduction

MobileFaceNet-iOS

This project includes three models.

MTCNN(pnet.tflite, rnet.tflite, onet.tflite), input: one UIImage, output: Box. Use this model to detect faces from an image.

FaceAntiSpoofing(FaceAntiSpoofing.tflite), input: one UIImage, output: float score. Use this model to determine whether the image is an attack.

MobileFaceNet(MobileFaceNet.tflite), input: two UIImages, output: float score. Use this model to judge whether two face images are one person.

Android platform implementation: https://github.com/syaringan357/Android-MobileFaceNet-MTCNN-FaceAntiSpoofing

References

https://github.com/vcvycy/MTCNN4Android
This project is the Android implementaion of MTCNN face detection.

https://github.com/davidsandberg/facenet
Use the MTCNN here to convert .tflite, so that you can adapt to any shape.

https://github.com/jiangxiluning/facenet_mtcnn_to_mobile
Here's how to convert .tflite.

https://github.com/yaojieliu/CVPR2019-DeepTreeLearningForZeroShotFaceAntispoofing
Face Anti-spoofing. I trained FaceAntiSpoofing.tflite, which only supports print attack and replay attack. If you have other requirements, please use this source code to retrain.

https://github.com/sirius-ai/MobileFaceNet_TF
Use this model for face comparison on mobile phones because it is very small.

BUILD

After putting .tflite in your project, remember to add .tflite file in Build Phases -> Copy Bundle Resources

SCREEN SHOT

ios-mobilefacenet-mtcnn-faceantispoofing's People

Contributors

ebichui avatar syaringan357 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ios-mobilefacenet-mtcnn-faceantispoofing's Issues

camera support plan?

In your android example, you develop camera version. but iOS version, only have two images.
do u have any plan to develop or update camera to this iOS app ? please....
this is best example.

静态图片识别有两个问题

1:mtncc对有旋转角度的图片人脸检测效果很差,有时会把一张脸识别出几个Box,有时候又完全识别不出来
2:mtncc检测后没有做人脸对齐,直接裁切后使用facenet做距离对比效果很差
对于第一点,iOS自带的Vision框架不管是性能还是检测结果都甩mtncc10条街,但是扫描后裁剪后转换成openCv图片对象后如何做对齐还不是很清楚,希望能探讨一下

english version

hi, thanks you for great lib, do u provide english version?

Weird problem with camera on portrait mode

On the iOS, in portrait mode it seems it has more problems correctly identifying a real face or an image. I would find the face, crop the face, and it say 0.99 for a real face. in landscape mode. it works much better

Swift support?

@syaringan357 Do you have this project in swift? Or supported for XCode 11.2.1? If you can provide MTCNN, Box, Tools, ios_image_load files in swift that would be great.

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.