DlibFaceLandmarkDetector is an Assets Plugin for object detection and shape prediction using Dlib19.7 C++ Library.
Official Site | ExampleCode | Android Demo WebGL Demo | Tutorial & Demo Video | Forum | API Reference
OUR ASSET FEATURES
iOS & Android & Windows10 UWP support.
Win & Mac & Linux Standalone support.
WebGL support.
ChromeOS support.
visionOS support.(beta)
Support for preview in the Editor.
- Object Detection: Detect frontal human faces and other objects using Histogram of Oriented Gradients (HOG) feature combined with a linear classifier, an image pyramid, and sliding window detection scheme.
- Shape Prediction: Detect face landmarks (68 points, 17 points, 6 points) using dlib's implementation of the paper (One Millisecond Face Alignment with an Ensemble of Regression Trees by Vahid Kazemi and Josephine Sullivan, CVPR 2014).
- Custom Training: You can train your own object detector and shape predictor models using dlib's machine learning tools. (Object Detector Training Tool, Shape Predictor Training Tool)
- Support for Texture2D , WebCamTexture , and Image byte array input.
- When combined with OpenCV for Unity, you can also input from OpenCV's Mat class for enhanced image processing capabilities.
- Helper functions for easy integration with Unity.
- FaceLandmarkDetector class implement Mat class for IDisposable , allowing you to manage resources using the using statement.
- Includes a wide variety of example usage scenarios, which consist of scene files and script codes. By running these example applications, you can learn how to develop Dlib applications effectively.
- Basic Examples: Texture2D Example, WebCamTexture Example, Benchmark Example.
- Advanced Examples: Advanced examples using OpenCV for Unity. (requires OpenCV for Unity)
DlibFaceLandmarkDetector Examples (GitHub)
EnoxSoftware repositories (GitHub)
You can take full advantage of all the features of DlibFaceLandmarkDetector in Unity’s Visual Scripting. You can learn how to integrate them through the VisualScripting With DlibFaceLandmarkDetector Example (GitHub).
Demo:
Examples:
Texture 2DExample
WebCamTexture Example
Benchmark Example
Advanced Examples:(require OpenCV for Unity)
Texture2DToMat Example
WebCamTexture2MatHelper Example
VideoCapture2MatHelper Example
ARHead WebCamTexture Example
ARHead VideoCapture Example
FrameOptimization Example
NoiseFilter WebCamTexture Example
NoiseFilter VideoCapture Example
ExampleCode using Dlib FaceLandmark Detector is available.
HoloLens With DlibFaceLandmarkDetector Example
DlibFaceLandmarkDetector uses Dlib under Boost Software License ; see Third-Party Notices.txt file in package for details.
The Shape Predictor model files included with this asset are available for commercial use.
System Requirements
Build Win Standalone & Preview Editor : Windows 8 or later
Build Mac Standalone & Preview Editor : OSX 10.13 or later
Build Linux Standalone & Preview Editor : Ubuntu18.04 or later
Build Android : API level 21 or later
Build iOS : iOS Version 12.0 or later
Build VisionOS : visionOS 1 or later (beta)