Beispiel #1
0
    /// <summary>
    /// Raises the destroy event.
    /// </summary>
    void OnDestroy()
    {
        webCamTextureToMatHelper.Dispose();

        if (detector != null)
        {
            detector.Dispose();
        }
    }
Beispiel #2
0
    /// <summary>
    /// Raises the destroy event.
    /// </summary>
    void OnDestroy()
    {
        webCamTextureToMatHelper.Dispose();

        if (net != null)
        {
            net.Dispose();
        }

        Utils.setDebugMode(false);
    }
    /// <summary>
    /// Raises the disable event.
    /// </summary>
    void OnDisable ()
    {
        webCamTextureToMatHelper.Dispose ();

        if (cascade != null) cascade.Dispose ();

        #if UNITY_WEBGL && !UNITY_EDITOR
        if (getFilePath_Coroutine != null) {
            StopCoroutine (getFilePath_Coroutine);
            ((IDisposable)getFilePath_Coroutine).Dispose ();
        }
        #endif
    }
        /// <summary>
        /// Raises the disable event.
        /// </summary>
        void OnDisable()
        {
            if (webCamTextureToMatHelper != null)
            {
                webCamTextureToMatHelper.Dispose();
            }

            if (faceLandmarkDetector != null)
            {
                faceLandmarkDetector.Dispose();
            }

            if (frontalFaceParam != null)
            {
                frontalFaceParam.Dispose();
            }
        }
Beispiel #5
0
    /// <summary>
    /// Raises the destroy event.
    /// </summary>
    void OnDestroy()
    {
        if (webCamTextureToMatHelper != null)
        {
            webCamTextureToMatHelper.Dispose();
        }

        if (faceLandmarkDetector != null)
        {
            faceLandmarkDetector.Dispose();
        }

        #if UNITY_WEBGL && !UNITY_EDITOR
        foreach (var coroutine in coroutines)
        {
            StopCoroutine(coroutine);
            ((IDisposable)coroutine).Dispose();
        }
        #endif
    }
Beispiel #6
0
 void OnDestroy()
 {
     _webCamTextureToMatHelper.Dispose();
 }
 void OnDestroy()
 {
     _texToMatHelper.Dispose();
 }
 void OnDisable()
 {
     webCamTextureToMatHelper.Dispose();
 }