visageSDK
VisageTracker.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace VisageCSWrapper
7 {
13  public enum class VISAGE_FORMAT
14  {
15  RGB=0,
16  BGR,
17  LUMINANCE,
18  RGBA,
19  BGRA
20  };
21 
22 
30  public enum class VISAGE_ORIGIN
31  {
32  TL = 0,
33  BL = 1
34  };
35 
36 
42  public enum class TRACK_STAT
43  {
44  OFF=0,
45  OK=1,
46  RECOVERING=2,
47  INIT=3
48  };
49 
50 
185  public class VisageTracker
186  {
195 
196  public VisageTracker(String trackerConfigFile);
197 
198 
239  public int[] Track(int frameWidth, int frameHeight, Byte[] imageData, FaceData[] faceData, int format = VISAGE_FORMAT.RGB, int origin = VISAGE_ORIGIN.TL, int widthStep = 0, long timeStamp = -1, int maxFaces = -1);
240 
241 
253  public void SetTrackerConfiguration(String trackerConfigFile, bool au_fitting_disabled = false, bool mesh_fitting_disabled = false);
254 
255 
262  public void SetTrackerConfiguration(VisageConfiguration configuration);
263 
269 
270 
274  public void Stop();
275 
276 
282  public void Reset();
283 
284 
295  property float InterPupillaryDistance;
296  };
297 }
VisageConfiguration VisageConfiguration GetTrackerConfiguration()
Obtain a copy of the active Tracker configuration.
VisageTracker is a face tracker capable of tracking the head pose, facial features and gaze for multi...
VISAGE_FORMAT
VISAGE_FORMAT is used to signalize what kind of image will be sent to the tracker, specifically how many channels the image will have.
VisageTracker(String trackerConfigFile)
Initializes tracker with specified configuration file.
int[] Track(int frameWidth, int frameHeight, Byte[] imageData, FaceData[] faceData, int format=VISAGE_FORMAT.RGB, int origin=VISAGE_ORIGIN.TL, int widthStep=0, long timeStamp=-1, int maxFaces=-1)
Performs face tracking (one or more faces) in the given image and returns tracking results and status...
void Reset()
Reset tracking.
VISAGE_ORIGIN
VISAGE_ORIGIN is used to signalize what kind of image will be sent to the tracker, specifically about origin.
void SetTrackerConfiguration(String trackerConfigFile, bool au_fitting_disabled=false, bool mesh_fitting_disabled=false)
Set configuration file name.
VisageConfiguration is a class used to change, apply, load and save configuration parameters used by ...
TRACK_STAT
TRACK_STAT describes the state the tracker is in.
Face data structure, used as container for all face tracking and detection results.
Definition: FaceData.cs:205