- Android (Galaxy S10+ SC-04L)
- Nreal Light
- Unity 2020.3.38f1+ (NRSDK supports the development environment of Unity 2018.4.X and above.)
- NRSDK Unity SDK 1.9.5
- OpenCV for Unity 2.4.8+
- Download the latest release unitypackage. NrealLightWithOpenCVForUnityExample.unitypackage
- Create a new project. (NrealLightWithOpenCVForUnityExample)
- Change the platform to Android in the "Build Settings" window.
- Import the OpenCVForUnity.
- Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
- Move the "OpenCVForUnity/StreamingAssets/objdetect" and "OpenCVForUnity/StreamingAssets/dnn" folders to the "Assets/StreamingAssets/" folder.
- Run the “download_dnn_models.py” in “Assets/StreamingAssets/dnn/” folder. ('python download_dnn_models.py YoloObjectDetectionExample' and 'python download_dnn_models.py LibFaceDetectionV2Example')
- Import the NRSDK.
- Download the latest release NRSDK unitypackage. NRSDKForUnity_Release_1.9.x.unitypackage
- Setup the NRSDK. (See Getting Started with NRSDK)
- Import the NrealLightWithOpenCVForUnityExample.unitypackage.
- Add the "Assets/NrealLightWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
- Build and Deploy to Android device. (See 8. Deploy to Nreal Device)
- (Print the AR marker "CanonicalMarker-d10-i1-sp500-bb1.pdf" and "ChArUcoBoard-mx5-my7-d10-os1000-bb1.pdf" on an A4 size paper)
Project Assets | Build Settings |
---|---|
![]() |
![]() |