NrealLightWithOpenCVForUnityExample
An example of a Nreal Light (XREAL Light) MR app by using NRSDK and OpenCVForUnity.
Install / Use
/learn @EnoxSoftware/NrealLightWithOpenCVForUnityExampleREADME
NrealLight (XREAL Light) With OpenCVForUnity Example
Demo Video
Demo NrealLight App
Environment
- Android (Galaxy S10+ SC-04L)
- Nebula 3.8.1
- Nreal Light (XREAL Light)
- Unity 2021.3.35f1+ (NRSDK supports the development environment of Unity 2019.4.X and above)
- NRSDK NRSDKForUnity 2.1.0
- OpenCV for Unity 3.0.0+
Setup
- 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.
- Select MenuItem[Tools/OpenCV for Unity/Open Setup Tools].
- Click the [Open Example Assets Downloader] button.
- Download files for examples ( HumanSegmentationExample, ObjectDetectionYolov4Example and FaceDetectionYNWebCamExample ) using the dnn, objdetect module.
- Click the [Move StreamingAssets Folder] button.
- Leave the following files and delete the rest. ("StreamingAssets/OpenCVForUnity/objdetect/haarcascade_frontalface_alt.xml", "lbpcascade_ frontalface.xml", "face_detection_yunet_2023mar.onnx","StreamingAssets/OpenCVForUnity/dnn/coco.names","yolov4-tiny.cfg","yolov4-tiny.weights","human_segmentation_pphumanseg_2023mar.onnx")
- Import the NRSDK.
- Download the latest release NRSDK unitypackage. NRSDKForUnityAndroid_x.xx.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. Building NRSDK App for Android)
- (Print the AR marker "CanonicalMarker-d10-i1-sp500-bb1.pdf" on an A4 size paper)
|SetupTools_AssetsDownloader|Project Assets|Build Settings|
|---|---|
|
|
|
|
ScreenShot







View on GitHub95/100
GitHub Stars31
CategoryDevelopment
Updated2mo ago
Forks2
Languages
C#
Security Score
Audited on Feb 3, 2026
No findings

