/// <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; }
/// <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); }
/// <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; }
/// <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); }
/// <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); }
/// <summary> /// Sets the current maximum faces to track simultaneously. /// </summary> public static void SetRequestedMaximumFaceCount(this IUsesFaceTracking obj, int requestedFaceCount) { obj.provider.RequestedMaximumFaceCount = requestedFaceCount; }
/// <summary> /// Gets the current number of faces to track simultaneously. /// </summary> public static int GetRequestedMaximumFaceCount(this IUsesFaceTracking obj) { return(obj.provider.RequestedMaximumFaceCount); }
public static int GetMaxFaceCount(this IUsesFaceTracking obj) { return(obj.provider.GetMaxFaceCount()); }