Accord.Controls.Vision.FaceController.OnFaceLeave C# (CSharp) Method

OnFaceLeave() protected method

Called when the face being tracked leaves the scene.
protected OnFaceLeave ( EventArgs args ) : void
args System.EventArgs
return void
        protected virtual void OnFaceLeave(EventArgs args)
        {
            IsTracking = false;
            IsDetecting = true;

            if (FaceLeave != null)
            {
                if (SynchronizingObject != null &&
                    SynchronizingObject.InvokeRequired)
                {
                    SynchronizingObject.BeginInvoke(
                        FaceLeave, new object[] { this, args });
                }
                else
                {
                    FaceLeave(this, args);
                }
            }
        }