1
0
Форкнуть 0
An example of a Nreal Light MR app by using NRSDK and DlibLandmarkDetector.
Перейти к файлу
surface 3dac8f5332 v1.0.1 update OpenCVForUnity version to 2.5.0. update DlibLandmarkDetector version to 1.3.4. 2022-12-21 18:44:47 +09:00
Assets v1.0.1 update OpenCVForUnity version to 2.5.0. update DlibLandmarkDetector version to 1.3.4. 2022-12-21 18:44:47 +09:00
BuildSettings.jpg v1.0.0 2022-09-23 19:24:38 +09:00
ProjectAssets.jpg v1.0.1 update OpenCVForUnity version to 2.5.0. update DlibLandmarkDetector version to 1.3.4. 2022-12-21 18:44:47 +09:00
README.md v1.0.1 update OpenCVForUnity version to 2.5.0. update DlibLandmarkDetector version to 1.3.4. 2022-12-21 18:44:47 +09:00
screenshot01.jpg v1.0.0 2022-09-23 19:24:38 +09:00
screenshot02.jpg v1.0.0 2022-09-23 19:24:38 +09:00
screenshot03.jpg v1.0.0 2022-09-23 19:24:38 +09:00

README.md

NrealLight With DlibFaceLandmarkDetector Example

Demo Video

Demo NrealLight App

Environment

Setup

  1. Download the latest release unitypackage. NrealLightWithDlibFaceLandmarkDetectorExample.unitypackage
  2. Create a new project. (NrealLightWithDlibFaceLandmarkDetectorExample)
    • Change the platform to Android in the "Build Settings" window.
  3. Import the OpenCVForUnity.
    • Select MenuItem[Tools/OpenCV for Unity/Open Setup Tools].
    • Click the [Move StreamingAssets Folder] button.
    • Leave the following files and delete the rest. ("StreamingAssets/OpenCVForUnity/objdetect/haarcascade_frontalface_alt.xml", "lbpcascade_ frontalface.xml")
  4. Import the DlibFaceLandmarkDetector.
    • Select MenuItem[Tools/Dlib FaceLandmark Detector/Open Setup Tools].
    • Click the [Move StreamingAssets Folder] button.
    • Leave the following files and delete the rest. ("StreamingAssets/DlibFaceLandmarkDetector/sp_human_face_68.dat", "sp_human_face_68_for_mobile.dat", "sp_human_face_17.dat", "sp_human_face_17_for_mobile.dat" and "sp_human_face_6.dat")
  5. Import the NRSDK.
  6. Import the NrealLightWithDlibFaceLandmarkDetectorExample.unitypackage.
  7. Add the "Assets/NrealLightWithDlibFaceLandmarkDetectorExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  8. Build and Deploy to Android device. (See 8. Deploy to Nreal Device)
Project Assets Build Settings
ProjectAssets.jpg BuildSettings.jpg

ScreenShot

screenshot01.jpg

screenshot02.jpg

screenshot03.jpg