/face_recognition_ios

face recognition and retrieve in ios

Primary LanguageC++

An ios app for face recognition and retrieve

  1. An c++ implement of face detect, recognition and retrieve based on mtcnn, facenet and hnswlib.
  2. Another web server implement based on Caffe and Flask can be found in Facenet-Caffe

Prerequisites

  1. OpenCV3.4.0
  2. NCNN framework, use to detect face.
  3. pretraned facenet model, can be downloaded in InceptionResnet.mlmodel

Test platform

App builds and running on iPhone SE successfully, arm64 architecture.

Application

  1. Enroll and store features in local sandbox.
  2. Retrieve by hnswlib.
  1. All the name you enrolled can be duplicated, the retrieve algorithm identify the face when the Euclidean Distance is smaller than 0.5, since all the face embedding vector is under L2 norm and confined in a high dimensional sphere whose radius is euqal to 1. The largest distance is 2.0.