Ejemplo n.º 1
0
 /// <summary>
 /// Raises the destroy event.
 /// </summary>
 void OnDestroy()
 {
     #if NETFX_CORE && !DISABLE_HOLOLENSCAMSTREAM_API
     webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
     #endif
     webCamTextureToMatHelper.Dispose();
 }
        /// <summary>
        /// Releases camera on destroy event (application closed).
        /// </summary>
        void OnDestroy()
        {
#if ENABLE_WINMD_SUPPORT
            webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
#endif
            webCamTextureToMatHelper.Dispose();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Raises the destroy event.
        /// </summary>
        void OnDestroy()
        {
#if WINDOWS_UWP && !DISABLE_HOLOLENSCAMSTREAM_API
            webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
#endif
            webCamTextureToMatHelper.Dispose();
            imageOptimizationHelper.Dispose();
        }
        /// <summary>
        /// Raises the destroy event.
        /// </summary>
        void OnDestroy()
        {
            if (isImagesInputMode)
            {
                DisposeCalibraton();
            }
            else
            {
                webCamTextureToMatHelper.Dispose();
            }

            Screen.orientation = ScreenOrientation.AutoRotation;
        }
        /// <summary>
        /// Raises the destroy event.
        /// </summary>
        void OnDestroy()
        {
            imageOptimizationHelper.Dispose();
#if WINDOWS_UWP && !DISABLE_HOLOLENSCAMSTREAM_API
            webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
#endif
            webCamTextureToMatHelper.Dispose();

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