Accord.Controls.Vision.HeadController.OnHeadLeave C# (CSharp) Method

OnHeadLeave() protected method

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

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