Dlib FaceLandmark Detector ver1.0.3 Release!
Version 1.0.3[WebGL]Added WebGL(beta) support.(Unity5.3 or later)[Common]Fixed missing script error.(WebCamTextureToMatHelper.cs)[Common]Added shape_predictor_68_face_landmarks_for_mobile.dat.
Dlib FaceLandmark Detector ver1.0.2 Release!
Veersion 1.0.2[Common]Improved WebCamTextureHelper class.
How to extract the shape predictor from “mmod_dog_hipsterizer.dat”
First of all, please look at this article. Hipsterize Your Dog With Deep Learning (dlib.net)The “mmod_dog_hipsterizer.dat” cannot be used as a shape predictor data because it is distributed in a state in which combines multiple files. I will introduce here because I wrote the code for the use of the dog face shape predictor data in “DlibFaceLandmarkDetector”.This example scene was created based on the “DlibFaceLandmarkDetector/Examples/CatDetectionExample”.Replace the “CatDetectionExample.cs” that is attached to Quad to this script code.Set to the dog image to the texture2D inspector.The file that you downloaded and unzipped from here must be put to the “streamingAssets” folder.using UnityEngine; using System.Collections; using System.Collections.Generic; using System.IO; #if UNITY_5_3 || UNITY_5_3_OR_NEWER using UnityEngine.SceneManagement; #endif using DlibFaceLandmarkDetector; namespace DlibFaceLandmarkDetectorSample { /// <summary> /// Dog detection example. /// </summary> public class DogDetectionExample : MonoBehaviour { /// <summary> /// The texture2 d. /// </summary> public Texture2D texture2D; //https://github.com/davisking/dlib/raw/master/examples/faces/dogs.jpg private Texture2D m_tex; private int m_width, m_height; private Color[] m_linesColor = null; // Use this for initialization void Start () { gameObject.transform.localScale = new Vector3 (texture2D.width, texture2D.height, 1); Debug.Log (“Screen.width ” + Screen.width + ” Screen.height ” + Screen.height + ” Screen.orientation ” + Screen.orientation); float width = gameObject.transform.localScale.x; float height = gameObject.transform.localScale.y; float widthScale = (float)Screen.width / width; float heightScale = (float)Screen.height / height; if (widthScale < heightScale) { Camera.main.orthographicSize = (width * (float)Screen.height / (float)Screen.width) / […]
Dlib FaceLandmark Detector ver1.0.1 Release!
Version 1.0.1[Common]Added OptimizationSample.[Common]Added DetectRectDetection() method.
Introductions
Hello everyone! Welcome. This site is the official site of the Unity Asset ” Dlib Face Landmark Detector ” .