Skip to content

Commit a2ed3d2

Browse files
committed
update README.md
1 parent 0578c28 commit a2ed3d2

8 files changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,28 @@
1111
## Setup
1212
1. Download the latest release unitypackage. [MagicLeapWithDlibFaceLandmarkDetectorExample.unitypackage](https://github.com/EnoxSoftware/MagicLeapWithDlibFaceLandmarkDetectorExample/releases)
1313
1. Create a new project. (MagicLeapWithDlibFaceLandmarkDetectorExample)
14+
1. Import "C:/Users/xxx/MagicLeap/tools/unity/v0.19.0/MagicLeap.unitypackage"
1415
1. Import the OpenCVForUnity.
1516
* Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
1617
* Set "Assets/OpenCVForUnity/Plugin/Android/libs/arm64-v8a/libopencvforunity.so" Import Settings.
17-
* Delete the code and example related to the WebCamTexture class.
1818
![magicleap_opencv_settings.png](magicleap_opencv_settings.png)
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+
![enclose_utils.png](enclose_utils.png)
21+
Assets/OpenCVForUnity/org/opencv/unity/Utils.cs
22+
![enclose_webcamtexturetomathelper.png](enclose_webcamtexturetomathelper.png)
23+
Assets/OpenCVForUnity/org/opencv/unity/helper/WebCamTextureToMatHelper.cs
24+
* Delete "Assets/OpenCVForUnity/Examples" folders.
25+
![delete_opencv_examples.png](delete_opencv_examples.png)
1926
1. Import the DlibFaceLandmarkDetector.
2027
* Setup the DlibFaceLandmarkDetector. (Tools > Dlib FaceLandmarkDetector > Set Plugin Import Settings)
28+
* Import "Assets/DlibFaceLandmarkDetector/DlibFaceLandmarkDetectorWithOpenCVExample.unitypackage".
2129
* Set "Assets/Dlib FaceLandmarkDetector/Plugin/Android/libs/arm64-v8a/libdlibfacelandmarkdetector.so" Import Settings.
22-
* Delete the code and example related to the WebCamTexture class.
2330
![magicleap_dlib_settings.png](magicleap_dlib_settings.png)
24-
1. Import the MagicLeapWithOpenCVForUnityExample.unitypackage.
31+
* Delete "Assets/DlibFaceLandmarkDetector/Examples/***Example" folders.
32+
![delete_dlib_examples.png](delete_dlib_examples.png)
33+
* Delete "Assets/DlibFaceLandmarkDetectorWithOpenCVExample/***Example" folders.
34+
![delete_dlibwithopencv_examples.png](delete_dlibwithopencv_examples.png)
35+
1. Import the MagicLeapWithDlibFaceLandmarkDetectorExample.unitypackage.
2536
1. Add the "Assets/MagicLeapWithDlibFaceLandmarkDetectorExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
2637
1. Check CameraCapture checkbox in Publishing Settings.
2738
1. Build and Deploy to MagicLeap.

delete_dlib_examples.png

116 KB
Loading

delete_dlibwithopencv_examples.png

119 KB
Loading

delete_opencv_examples.png

111 KB
Loading

enclose_utils.png

275 KB
Loading

enclose_webcamtexturetomathelper.png

229 KB
Loading

magicleap_dlib_settings.png

-51.5 KB
Loading

magicleap_opencv_settings.png

-43.1 KB
Loading

0 commit comments

Comments
 (0)