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

            if (patternMat != null)
            {
                patternMat.Dispose();
            }
        }
        void OnDisable()
        {
            webCamTextureToMatHelper.Dispose();

            detector.Dispose();
            if (keypoints != null)
            {
                keypoints.Dispose();
            }

//            Utils.setDebugMode(false);
        }