/// <summary> /// Called when a head movement is detected. /// </summary> /// protected virtual void OnFaceMove(FaceEventArgs args) { if (FaceMove != null) { if (SynchronizingObject != null && SynchronizingObject.InvokeRequired) { SynchronizingObject.BeginInvoke( FaceMove, new object[] { this, args }); } else { FaceMove(this, args); } } }
/// <summary> /// Called when a face enters the scene. /// </summary> /// protected virtual void OnFaceEnter(FaceEventArgs args) { IsTracking = true; IsDetecting = false; if (FaceEnter != null) { if (SynchronizingObject != null && SynchronizingObject.InvokeRequired) { SynchronizingObject.BeginInvoke( FaceEnter, new object[] { this, args }); } else { FaceEnter(this, args); } } }