You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HLWithDlibExampleMRTK2/Assets/HoloLensWithDlibFaceLandmarkDetectorExample/HLARHeadExample/HLARHeadExample.cs
// "empty" method is not working on the UWP platform.
444
+
if(cascade.empty())
445
+
{
446
+
Debug.LogError("cascade file is not loaded. Please copy from “OpenCVForUnity/StreamingAssets/OpenCVForUnity/objdetect/” to “Assets/StreamingAssets/OpenCVForUnity/objdetect/” folder. ");
447
+
}
448
+
#endif
449
+
450
+
cascade4Thread=newCascadeClassifier();
451
+
cascade4Thread.load(cascade4Thread_filepath);
452
+
#if !WINDOWS_UWP||UNITY_EDITOR
453
+
// "empty" method is not working on the UWP platform.
454
+
if(cascade4Thread.empty())
455
+
{
456
+
Debug.LogError("cascade file is not loaded. Please copy from “OpenCVForUnity/StreamingAssets/OpenCVForUnity/objdetect/” to “Assets/StreamingAssets/OpenCVForUnity/objdetect/” folder. ");
Debug.LogError("shape predictor file does not exist. Please copy from “DlibFaceLandmarkDetector/StreamingAssets/DlibFaceLandmarkDetector/” to “Assets/StreamingAssets/DlibFaceLandmarkDetector/” folder. ");
Debug.LogError("shape predictor file does not exist. Please copy from “DlibFaceLandmarkDetector/StreamingAssets/DlibFaceLandmarkDetector/” to “Assets/StreamingAssets/DlibFaceLandmarkDetector/” folder. ");
// "empty" method is not working on the UWP platform.
593
-
if(cascade.empty())
594
-
{
595
-
Debug.LogError("cascade file is not loaded. Please copy from “OpenCVForUnity/StreamingAssets/OpenCVForUnity/objdetect/” to “Assets/StreamingAssets/OpenCVForUnity/objdetect/” folder. ");
// "empty" method is not working on the UWP platform.
605
-
if(cascade4Thread.empty())
606
-
{
607
-
Debug.LogError("cascade file is not loaded. Please copy from “OpenCVForUnity/StreamingAssets/OpenCVForUnity/objdetect/” to “Assets/StreamingAssets/OpenCVForUnity/objdetect/” folder. ");
608
-
}
609
-
#endif
610
636
}
611
637
612
638
/// <summary>
@@ -630,15 +656,9 @@ public void OnWebCamTextureToMatHelperDisposed()
630
656
ExecuteOnMainThread.Clear();
631
657
}
632
658
633
-
if(cascade!=null)
634
-
cascade.Dispose();
635
-
636
659
if(grayMat4Thread!=null)
637
660
grayMat4Thread.Dispose();
638
661
639
-
if(cascade4Thread!=null)
640
-
cascade4Thread.Dispose();
641
-
642
662
rectangleTracker.Reset();
643
663
644
664
camMatrix.Dispose();
@@ -667,12 +687,13 @@ public void OnWebCamTextureToMatHelperDisposed()
667
687
}
668
688
669
689
/// <summary>
670
-
/// Raises the web cam texture to mat helper error occurred event.
690
+
/// Raises the webcam texture to mat helper error occurred event.
Copy file name to clipboardExpand all lines: HLWithDlibExampleMRTK2/Assets/HoloLensWithDlibFaceLandmarkDetectorExample/HLARHeadExample/HLARHeadExample.unity
0 commit comments