Dlib FaceLandmark Detector is a Unity plugin that lets you use Dlib19.7 C++ Library (
http://dlib.net/) in Unity for object detection and shape prediction.
Official Site (
https://enoxsoftware.com/dlibfacelandmarkdetector/) | ExampleCode (
https://github.com/EnoxSoftware/DlibFaceLandmarkDetector) | Android Demo (
https://github.com/EnoxSoftware/DlibFaceLandmarkDetector/releases) WebGL Demo (
https://enoxsoftware.github.io/DlibFaceLandmarkDetector/webgl_example_simd/index.html) | Tutorial (
https://youtu.be/xUw3LillWrs) & Demo Video (
https://youtu.be/pwm66AC7lFk) | Forum (
http://forum.unity3d.com/threads/pending-review-dlib-facelandmark-detector.408958/) | API Reference (
https://enoxsoftware.github.io/DlibFaceLandmarkDetector/doc/html/index.html)
OUR ASSET FEATURES
- Cross Platform
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 & Shape Prediction
- 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 (
http://dlib.net/train_object_detector.cpp.html), Shape Predictor Training Tool (
http://dlib.net/train_shape_predictor_ex.cpp.html))
- Easy to Use
- Support for Texture2D , WebCamTexture , and Image byte array input.
- When combined with OpenCV for Unity (
https://assetstore.unity.com/packages/slug/21088), 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.
- Include Many Examples
- 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 (
https://assetstore.unity.com/packages/slug/21088))
DlibFaceLandmarkDetector Examples (GitHub) (
https://github.com/EnoxSoftware/DlibFaceLandmarkDetector)
EnoxSoftware repositories (GitHub) (
https://github.com/EnoxSoftware?tab=repositories)
- Visual Scripting Support
You can take full advantage of all the features of DlibFaceLandmarkDetector in Unity’s Visual Scripting (
https://unity.com/features/unity-visual-scripting). You can learn how to integrate them through the VisualScripting With DlibFaceLandmarkDetector Example (GitHub) (
https://github.com/EnoxSoftware/VisualScriptingWithDlibFaceLandmarkDetectorExample).
Demo:
- Android Demo (
https://github.com/EnoxSoftware/DlibFaceLandmarkDetector/releases)
- WebGL Demo (
https://enoxsoftware.github.io/DlibFaceLandmarkDetector/webgl_example_simd/index.html)
Examples:
Texture 2DExample
WebCamTexture Example
WebCamTextureDownScaleExample
Benchmark Example
Advanced Examples:(require OpenCV for Unity (
https://assetstore.unity.com/packages/slug/21088))
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.
FaceMask Example (
https://assetstore.unity.com/packages/slug/79999)
CV VTuber Example (
https://assetstore.unity.com/packageDescription sourced from the Unity Asset Store listing.