[go: up one dir, main page]

Skip to content

An example of use a Vision framework for face landmarks detection in iOS 11 using Xamarin.iOS

Notifications You must be signed in to change notification settings

dalexsoto/FaceDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#FaceDetector

This is an almost line by line C# port of the swift VisionFaceDetection project for Xamarin.iOS.

In order to run this sample you will need Xamarin.iOS 10.99 + and Xcode 9 +

The original README can be found below, all kudos goes to Pawel Chmiel for authoring this amazing Vision sample.

--

VisionFaceDetection

An example of use a Vision framework for face landmarks detection

Landmark detection needs to be divided in to two steps.

First one is face rectangle detection by using VNDetectFaceRectanglesRequest based on pixelBuffer provided by delegate function captureOutput.

Next we need to setup the property inputFaceObservations of VNDetectFaceLandmarksRequest object, to provide the input. Now we are redy to start landmarks detection.

It's possible to detects landmarks like: faceContour, leftEye, rightEye, nose, noseCrest, lips, outerLips, leftEyebrow, and rightEyebrow.

To display the results I'm using multiple CAShapeLayer with UIBezierPath. Landmarks detection is working on live front camera preview.

Example of detected landmarks

If you want more details about using Vision framework, go and check my blogpost about it

About

An example of use a Vision framework for face landmarks detection in iOS 11 using Xamarin.iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages