Simple lib for iOS to find and compare faces.
Alternatives To Sfacecompare
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
a month ago235otherC++
OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation
Opencv4nodejs4,7296242a month ago120May 13, 2020290mitC++
Nodejs bindings to OpenCV 3 and OpenCV 4
Node Opencv4,275307614 months ago31March 10, 2020126mitC++
OpenCV Bindings for node.js
Pigo3,992153 months ago24November 02, 20212mitGo
Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go.
Face Mask Detection1,355
6 months ago20mitJupyter Notebook
Face Mask Detection system based on computer vision and deep learning using OpenCV and Tensorflow/Keras
5 years ago4
A Face detector for anime/manga using OpenCV
Head Pose Estimation1,017
3 days ago25mitPython
Head pose estimation by TensorFlow and OpenCV
3 years ago8mitC++
Real time deformable face tracking in C++ with OpenCV 3.
Emotion Detection907
2 months ago12mitPython
Real-time Facial Emotion Detection using deep learning
6 years ago14Python
(WARNING: This repository is NO LONGER maintained ) Real time face detection and recognition base on opencv/tensorflow/mtcnn/facenet
Alternatives To Sfacecompare
Select To Compare

Alternative Project Comparisons

SFaceCompare: compare faces on your iOS device

CI Status iOS 12.0 Swift 5.0+ Version License Platform

SFaceCompare is a simple library for iOS to find and compare faces. SFaceCompare works on top of dlib and OpenCV libraries. With usage of trained model.


  • [x] Face detecting / extracting
  • [x] Face aligment
  • [x] Face matching

Used Libraries

  • dlib - Image processing
  • openCV - Detecting face landmarks and face alignment
  • SameFace - Core that connects dlib & openCV functionality under the hood

These libraries were used to create SameFace.framework which src on CVDlibUtils branch


To run the example project, clone the repo, and run pod install from the Example directory first.


Import Faces.mlmodel

Make import of Faces.mlmodel file into your actual project. To make this.

  1. Open Example App provided with this repo
  2. Find Faces.mlmodel
  3. Drag/Copy-Paste into root of your project


CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1+ is required to build SFaceCompare.

To install library, simply add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '12.0'

target '<Your Target Name>' do
    pod 'SFaceCompare'

Then, run the following command:

$ pod install

Usage Example

Faces are the same Faces are different

In Your App delegate call SFaceCompare.opncvwrp.loadData() to load model related data. This Operation is long and async. So better put this before using methods from pod.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    return true

As simple as possible

// 1: Create compare object
let faceComparator = SFaceCompare(on: image1, and: image2)
// 2: Call compareFaces method with success and error handlers
faceComparator.compareFaces{ results in ... }


SFaceCompare is owned and maintained by Bohdan Mihiliev & Anton Khrolenko


SFaceCompare is available under the MIT license. See the LICENSE file for more info.

Popular Face Projects
Popular Opencv Projects
Popular Machine Learning Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.