|
11 | 11 | ## Setup
|
12 | 12 | 1. Download the latest release unitypackage. [MagicLeapWithDlibFaceLandmarkDetectorExample.unitypackage](https://github.com/EnoxSoftware/MagicLeapWithDlibFaceLandmarkDetectorExample/releases)
|
13 | 13 | 1. Create a new project. (MagicLeapWithDlibFaceLandmarkDetectorExample)
|
| 14 | +1. Import "C:/Users/xxx/MagicLeap/tools/unity/v0.19.0/MagicLeap.unitypackage" |
14 | 15 | 1. Import the OpenCVForUnity.
|
15 | 16 | * Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
|
16 | 17 | * Set "Assets/OpenCVForUnity/Plugin/Android/libs/arm64-v8a/libopencvforunity.so" Import Settings.
|
17 |
| - * Delete the code and example related to the WebCamTexture class. |
18 | 18 | 
|
| 19 | + * Enclose the code related to the WebCamTexture class with #if UNITY_EDITOR and #endif. ( The WebCamTexture class is not included in the MagicLeap API, so an error occurs at build time. ) |
| 20 | +  |
| 21 | + Assets/OpenCVForUnity/org/opencv/unity/Utils.cs |
| 22 | +  |
| 23 | + Assets/OpenCVForUnity/org/opencv/unity/helper/WebCamTextureToMatHelper.cs |
| 24 | + * Delete "Assets/OpenCVForUnity/Examples" folders. |
| 25 | +  |
19 | 26 | 1. Import the DlibFaceLandmarkDetector.
|
20 | 27 | * Setup the DlibFaceLandmarkDetector. (Tools > Dlib FaceLandmarkDetector > Set Plugin Import Settings)
|
| 28 | + * Import "Assets/DlibFaceLandmarkDetector/DlibFaceLandmarkDetectorWithOpenCVExample.unitypackage". |
21 | 29 | * Set "Assets/Dlib FaceLandmarkDetector/Plugin/Android/libs/arm64-v8a/libdlibfacelandmarkdetector.so" Import Settings.
|
22 |
| - * Delete the code and example related to the WebCamTexture class. |
23 | 30 | 
|
24 |
| -1. Import the MagicLeapWithOpenCVForUnityExample.unitypackage. |
| 31 | + * Delete "Assets/DlibFaceLandmarkDetector/Examples/***Example" folders. |
| 32 | +  |
| 33 | + * Delete "Assets/DlibFaceLandmarkDetectorWithOpenCVExample/***Example" folders. |
| 34 | +  |
| 35 | +1. Import the MagicLeapWithDlibFaceLandmarkDetectorExample.unitypackage. |
25 | 36 | 1. Add the "Assets/MagicLeapWithDlibFaceLandmarkDetectorExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
|
26 | 37 | 1. Check CameraCapture checkbox in Publishing Settings.
|
27 | 38 | 1. Build and Deploy to MagicLeap.
|
|
0 commit comments