The Wayback Machine - https://web.archive.org/web/20201108043010/https://github.com/DroidsOnRoids/VisionFaceDetection
Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jun 23, 2017
Oct 3, 2017

README.md

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

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.