Dlib FaceLandmark Detector
1.3.4
Enox Software
|
Face landmark detector. More...
Classes | |
class | RectDetection |
Public Member Functions | |
FaceLandmarkDetector (string shapePredictorFilePath) | |
FaceLandmarkDetector (string objectDetectorFilePath, string shapePredictorFilePath) | |
void | SetImage (Texture2D texture2D) |
void | SetImage (WebCamTexture webCamTexture) |
void | SetImage (WebCamTexture webCamTexture, Color32[] bufferColors) |
void | SetImage (IntPtr intPtr, int width, int height, int bytesPerPixel) |
void | SetImage (IntPtr intPtr, int width, int height, int bytesPerPixel, bool flip) |
void | SetImage< T > (T[] array, int width, int height, int bytesPerPixel) |
void | SetImage< T > (T[] array, int width, int height, int bytesPerPixel, bool flip) |
List< Rect > | Detect () |
List< Rect > | Detect (double adjust_threshold) |
List< RectDetection > | DetectRectDetection () |
List< RectDetection > | DetectRectDetection (double adjust_threshold) |
double [] | DetectArray () |
double [] | DetectArray (double adjust_threshold) |
List< Vector2 > | DetectLandmark (double left, double top, double width, double height) |
List< Vector2 > | DetectLandmark (Rect rect) |
double [] | DetectLandmarkArray (double left, double top, double width, double height) |
double [] | DetectLandmarkArray (Rect rect) |
bool | IsAllPartsInRect () |
long | GetShapePredictorNumParts () |
long | GetShapePredictorNumFeatures () |
void | DrawDetectResult (Texture2D texture2D, int r, int g, int b, int a, int thickness, bool updateMipmaps=false, bool makeNoLongerReadable=false) |
void | DrawDetectResult (IntPtr intPtr, int width, int height, int bytesPerPixel, int r, int g, int b, int a, int thickness) |
void | DrawDetectResult (IntPtr intPtr, int width, int height, int bytesPerPixel, bool flip, int r, int g, int b, int a, int thickness) |
void | DrawDetectResult< T > (T[] array, int width, int height, int bytesPerPixel, int r, int g, int b, int a, int thickness) |
void | DrawDetectResult< T > (T[] array, int width, int height, int bytesPerPixel, bool flip, int r, int g, int b, int a, int thickness) |
void | DrawDetectLandmarkResult (Texture2D texture2D, int r, int g, int b, int a, bool updateMipmaps=false, bool makeNoLongerReadable=false) |
void | DrawDetectLandmarkResult (IntPtr intPtr, int width, int height, int bytesPerPixel, int r, int g, int b, int a) |
void | DrawDetectLandmarkResult (IntPtr intPtr, int width, int height, int bytesPerPixel, bool flip, int r, int g, int b, int a) |
void | DrawDetectLandmarkResult< T > (T[] array, int width, int height, int bytesPerPixel, int r, int g, int b, int a) |
void | DrawDetectLandmarkResult< T > (T[] array, int width, int height, int bytesPerPixel, bool flip, int r, int g, int b, int a) |
![]() | |
void | Dispose () |
void | ThrowIfDisposed () |
Protected Member Functions | |
override void | Dispose (bool disposing) |
![]() | |
DisposableDlibObject () | |
DisposableDlibObject (IntPtr ptr) | |
DisposableDlibObject (bool isEnabledDispose) | |
DisposableDlibObject (IntPtr ptr, bool isEnabledDispose) | |
![]() | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
![]() | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Face landmark detector.
DlibFaceLandmarkDetector.FaceLandmarkDetector.FaceLandmarkDetector | ( | string | shapePredictorFilePath | ) |
Initializes a new instance of the FaceLandmarkDetector class.
This instance uses default frontal face detector.
ObjectDetector is initialized in such a code. frontal_face_detector face_detector; face_detector = get_frontal_face_detector();
ShapePredictor is initialized in such a code. shape_predictor sp; deserialize(shape_predictor_filename) >> sp;
shapePredictorFilePath |
DlibFaceLandmarkDetector.FaceLandmarkDetector.FaceLandmarkDetector | ( | string | objectDetectorFilePath, |
string | shapePredictorFilePath | ||
) |
Initializes a new instance of the FaceLandmarkDetector class.
ObjectDetector is initialized in such a code. if(object_detector_filename != null){ object_detector<scan_fhog_pyramid<pyramid_down<6>>> simple_detector; deserialize(object_detector_filename) >> simple_detector; }else{ frontal_face_detector face_detector; face_detector = get_frontal_face_detector(); }
ShapePredictor is initialized in such a code. shape_predictor sp; deserialize(shape_predictor_filename) >> sp;
objectDetectorFilePath | |
shapePredictorFilePath |
List<Rect> DlibFaceLandmarkDetector.FaceLandmarkDetector.Detect | ( | ) |
Detects Objects.
List<Rect> DlibFaceLandmarkDetector.FaceLandmarkDetector.Detect | ( | double | adjust_threshold | ) |
Detects Objects.
adjust_threshold |
double [] DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectArray | ( | ) |
Detects Objects.
double [] DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectArray | ( | double | adjust_threshold | ) |
Detects Objects.
adjust_threshold |
List<Vector2> DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectLandmark | ( | double | left, |
double | top, | ||
double | width, | ||
double | height | ||
) |
Detects Object Landmark.
left | |
top | |
width | |
height |
List<Vector2> DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectLandmark | ( | Rect | rect | ) |
Detects Object Landmark.
rect |
double [] DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectLandmarkArray | ( | double | left, |
double | top, | ||
double | width, | ||
double | height | ||
) |
Detects Object Landmark.
left | |
top | |
width | |
height |
double [] DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectLandmarkArray | ( | Rect | rect | ) |
Detects Object Landmark.
rect |
List<RectDetection> DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectRectDetection | ( | ) |
Detects Objects.
List<RectDetection> DlibFaceLandmarkDetector.FaceLandmarkDetector.DetectRectDetection | ( | double | adjust_threshold | ) |
Detects Objects.
adjust_threshold |
|
protectedvirtual |
Reimplemented from DlibFaceLandmarkDetector.DisposableDlibObject.
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectLandmarkResult | ( | Texture2D | texture2D, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
bool | updateMipmaps = false , |
||
bool | makeNoLongerReadable = false |
||
) |
Draws Detect Landmark Result.
texture2D | |
r | |
g | |
b | |
a |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectLandmarkResult | ( | IntPtr | intPtr, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Draws Detect Landmark Result.
intPtr | |
width | |
height | |
bytesPerPixel | 1 ,3 or 4 |
r | |
g | |
b | |
a |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectLandmarkResult | ( | IntPtr | intPtr, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
bool | flip, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Draws Detect Landmark Result.
intPtr | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
flip | flip vertical |
r | |
g | |
b | |
a |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectLandmarkResult< T > | ( | T [] | array, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Draws Detect Landmark Result.
array | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
r | |
g | |
b | |
a |
T | : | struct |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectLandmarkResult< T > | ( | T [] | array, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
bool | flip, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Draws Detect Landmark Result.
array | |
width | |
height | @bytesPerPixel 1 , 3 or 4 @flip flip vertical |
r | |
g | |
b | |
a |
T | : | struct |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectResult | ( | Texture2D | texture2D, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
int | thickness, | ||
bool | updateMipmaps = false , |
||
bool | makeNoLongerReadable = false |
||
) |
Draws Detect Result.
texture2D | |
r | |
g | |
b | |
a | |
thickness |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectResult | ( | IntPtr | intPtr, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
int | thickness | ||
) |
Draws Detect Result.
intPtr | |
width | |
height | @bytePerPixel 1 , 3 or 4 |
r | |
g | |
b | |
a | |
thickness |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectResult | ( | IntPtr | intPtr, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
bool | flip, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
int | thickness | ||
) |
Draws Detect Result.
intPtr | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
flip | flip vertical |
r | |
g | |
b | |
a | |
thickness |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectResult< T > | ( | T [] | array, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
int | thickness | ||
) |
Draws Detect Result.
array | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
r | |
g | |
b | |
a | |
thickness |
T | : | struct |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.DrawDetectResult< T > | ( | T [] | array, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
bool | flip, | ||
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
int | thickness | ||
) |
Draws Detect Result.
array | |
width | |
height | |
bytePerPixel | 1 , 3 or 4 |
flip | flip vertical |
r | |
g | |
b | |
a | |
thickness |
T | : | struct |
long DlibFaceLandmarkDetector.FaceLandmarkDetector.GetShapePredictorNumFeatures | ( | ) |
Gets ShapePredictorNumFeatures.
long DlibFaceLandmarkDetector.FaceLandmarkDetector.GetShapePredictorNumParts | ( | ) |
Gets ShapePredictorNumParts.
bool DlibFaceLandmarkDetector.FaceLandmarkDetector.IsAllPartsInRect | ( | ) |
Whether all of the object parts point is contained in the object rectangle?
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage | ( | Texture2D | texture2D | ) |
Sets Image from Texture2D.
texture2D |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage | ( | WebCamTexture | webCamTexture | ) |
Sets Image from WebCamTexture.
webCamTexture |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage | ( | WebCamTexture | webCamTexture, |
Color32 [] | bufferColors | ||
) |
Sets Image from WebCamTexture.
webCamTexture | |
bufferColors | the optional array to receive pixel data. You can optionally pass in an array of Color32s to use in colors to avoid allocating new memory each frame. The array needs to be initialized to a length matching width * height of the texture.(http://docs.unity3d.com/ScriptReference/WebCamTexture.GetPixels32.html) |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage | ( | IntPtr | intPtr, |
int | width, | ||
int | height, | ||
int | bytesPerPixel | ||
) |
Sets Image from IntPtr.
intPtr | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage | ( | IntPtr | intPtr, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
bool | flip | ||
) |
Sets Image from IntPtr.
intPtr | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
flip | flip vertical |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage< T > | ( | T [] | array, |
int | width, | ||
int | height, | ||
int | bytesPerPixel | ||
) |
Sets Image from Pixel Data Array.
array | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
T | : | struct |
void DlibFaceLandmarkDetector.FaceLandmarkDetector.SetImage< T > | ( | T [] | array, |
int | width, | ||
int | height, | ||
int | bytesPerPixel, | ||
bool | flip | ||
) |
Sets Image from Pixel Data Array.
array | |
width | |
height | |
bytesPerPixel | 1 , 3 or 4 |
flip | flip vertical |
T | : | struct |