A demo of face recognition SwiftUI app on iOS. Based on Vision, OpenCV, Dlib and ResNet.

Overview

iOS-FaceRecognizer

A demo of face recognition SwiftUI app on iOS, build for iPad. Based on Vision, OpenCV, Dlib and ResNet.

Features

  • Add face image and name into database.
  • Real-time Face tracking.
  • Real-time face recognize.

Build

OpenCV

Install opencv dependency with cocoapods.

pod install

Dlib

Clone Dlib to anywhere you like. For example ~/project/Framework.

mkdir Framework
cd Framework
git clone https://github.com/davisking/dlib.git

Download "libdlib.a" from release page and copy it to Framework/lib folder. Add libdlib.a into the "Build Phases > Link Binary With Libraries" list in Xcode project. Add dlib header path into "Build Settings > Header Search Paths". For example "/Users/js/project/Framework/dlib" Add Framework path into "Build Settings > Library Serch Path". For example "/Users/js/project/Framework/lib"

Download shape_predictor_68_face_landmarks.dat from here:

http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2

Download dlib_face_recognition_resnet_model_v1.dat from here:

http://dlib.net/files/dlib_face_recognition_resnet_model_v1.dat.bz2

Drag & Drop these dat files into the project and add them into the "Build Phases > Copy Bundle Resources" list.

Preview

https://www.bilibili.com/video/BV1rv411A7AX?zw


iOS-FaceRecognizer

这是一个用 SwiftUI 为 iPad 编写的人脸识别 App。基于 Vison,OpenCV,Dlib 和 ResNet。

功能

  • 向数据库添加人脸图片和姓名
  • 实时人脸追踪
  • 实时人脸识别

中文教程

我的博客: 在 iOS 中实现人脸识别

You might also like...
Utilizing Apple's Vision Framework to center faces in CGImage.
Utilizing Apple's Vision Framework to center faces in CGImage.

FaceCrop CGImage extension that utilizes Apple's Vision Framework to detect and center faces. Usage cgImage.faceCrop { [weak self] result in switc

Simple command-line utility for performing OCR using Apple's Vision framework

ocrit Runs Vision's OCR on input images and outputs corresponding txt files for each image, or writes the recognized results to standard output. USAGE

Photo Gallery App demo using a REST API

Photo Gallery iOS App - (Using Rest API) A demo Photo Gallery App using a Rest API using MVVM architecture in Swift + UIKit. Overview Fully Programmat

SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image
SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image

SwiftColorArt SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema mat

How to create a UIImagePicker demo?

chapter10UIImagePickerDemo How to create a UIImagePicker demo? I add 'Privacy - Camera Usage Description' and 'Privacy - Photo Library Usage Descripti

EbImagesSwiftUI - SDWebImageSwiftUI - a SwiftUI image loading framework, which based on SDWebImage
EbImagesSwiftUI - SDWebImageSwiftUI - a SwiftUI image loading framework, which based on SDWebImage

SDWebImageSwiftUI What's for SDWebImageSwiftUI is a SwiftUI image loading framew

A simple mesh viewer for MacOS based on Swift and Metal and using Assimp for loading meshes

Metal Mesh Viewer A simple triangle mesh viewer for MacOS This application is a simple (triangle) mesh viewer that should be capable of rendering even

LoremPicsum - Simple UIKit based app for displaying grid of pictures

LoremPicsum - Simple UIKit based app for displaying grid of pictures

Owner
js_john
js_john
Ken Burns effect with face recognition!

APKenBurnsView Ken Burns effect with face recognition! APKenBurnsView is UIView subclass which supports face recognition to beautifully animate people

Alty 96 Sep 3, 2022
Autocrop - A face-aware crop utility using OSX's Vision framework

autocrop A high-performance face-aware crop utility using OSX's Vision framework

Alex Dong 0 Jan 19, 2022
Vision Camera 📸 The Camera library that sees the vision.

Vision Camera ?? The Camera library that sees the vision. npm i react-native-vision-camera npx pod-install Documentation Guides API Ex

Marc Rousavy 3.4k Nov 25, 2022
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.

ImageDetect ImageDetect is a library developed on Swift. With ImageDetect you can easily detect and crop faces, texts or barcodes in your image with i

Arthur Sahakyan 297 Nov 1, 2022
A simple macOS app to read code from images, written purely in Swift using Vision Framework.

CodeReader A simple macOS app to read code from images, written purely in Swift using Vision Framework. Usage Drag an image Click the convert button R

Md Ibrahim Hassan 44 Nov 20, 2022
Screen translator for macOS with Apple Vision API and IBM Watson, Google Cloud Translator

Swifty-OCR-Translator Screen translator for macOS with Apple Vision API and IBM Watson, Google Cloud Translator Usage Select Translator Fill in the AP

Kwangmin Bae 21 Sep 13, 2022
Crop faces, inside of your image, with iOS 11 Vision api.

FaceCropper Requirements Xcode 9.0 (beta) or higher. iOS 11.0 (beta) or higher. (It is possible to import this library under the iOS 11. But it won't

Taejun Kim 487 Oct 5, 2022
Turn a photo of your food into a face

Megabite Megabite is a mobile app that automatically turns a photo of your food into a face. Read more about it here. Installation This project uses C

Aaron Randall 361 Oct 26, 2022
Reconstruct a 3D face with RGB-D images captured by iPhone X's TrueDepth camera.

!TrueDepth camera can only be accessed on iPhone X or later. TODO Get the RGB-D files (This repository) Generate 3D face mesh with landmark detector a

null 14 Nov 18, 2022
SharkCardScan is a Credit/Debit Card scanner built using Apple's Vision Framework.

iOS Credit/Debit card scanner, built using Apple's Vision Framework.

Gymshark 23 Nov 16, 2022