Пример #1
0
 /// <summary>
 /// Subscribe to the faceUpdated event, which is called when a tracked face has updated data
 /// </summary>
 /// <param name="faceUpdated">The delegate to subscribe</param>
 public static void SubscribeFaceUpdated(this IUsesFaceTracking obj, Action <IMRFace> faceUpdated)
 {
     obj.provider.FaceUpdated += faceUpdated;
 }
Пример #2
0
 /// <summary>
 /// Get the currently tracked faces
 /// </summary>
 /// <param name="faces">A list of IMRFace objects to which the currently tracked planes will be added</param>
 public static void GetFaces(this IUsesFaceTracking obj, List <IMRFace> faces)
 {
     obj.provider.GetFaces(faces);
 }
Пример #3
0
 /// <summary>
 /// Unsubscribe a delegate from the faceAdded event
 /// </summary>
 /// <param name="faceAdded">The delegate to unsubscribe</param>
 public static void UnsubscribeFaceAdded(this IUsesFaceTracking obj, Action <IMRFace> faceAdded)
 {
     obj.provider.FaceAdded -= faceAdded;
 }
Пример #4
0
 /// <summary>
 /// The absolute maximum number of faces that can be supported by the provider.
 /// -1 if unlimited.
 /// </summary>
 public static int GetSupportedFaceCount(this IUsesFaceTracking obj)
 {
     return(obj.provider.SupportedFaceCount);
 }
Пример #5
0
 /// <summary>
 /// Gets the current maximum face count.
 /// If RequestedMaximumFaceCount set is supported,
 /// will reflect that value once the provider has
 /// been updated.
 /// </summary>
 public static int GetCurrentMaximumFaceCount(this IUsesFaceTracking obj)
 {
     return(obj.provider.CurrentMaximumFaceCount);
 }
Пример #6
0
 /// <summary>
 /// Sets the current maximum faces to track simultaneously.
 /// </summary>
 public static void SetRequestedMaximumFaceCount(this IUsesFaceTracking obj, int requestedFaceCount)
 {
     obj.provider.RequestedMaximumFaceCount = requestedFaceCount;
 }
Пример #7
0
 /// <summary>
 /// Gets the current number of faces to track simultaneously.
 /// </summary>
 public static int GetRequestedMaximumFaceCount(this IUsesFaceTracking obj)
 {
     return(obj.provider.RequestedMaximumFaceCount);
 }
Пример #8
0
 public static int GetMaxFaceCount(this IUsesFaceTracking obj)
 {
     return(obj.provider.GetMaxFaceCount());
 }