An example of a Nreal Light MR app by using NRSDK and OpenCVForUnity.
Перейти к файлу
surface 8518994dbd v1.0.4 update NRSDK version to 2.1.0. 2023-10-02 20:00:53 +09:00
Assets v1.0.4 update NRSDK version to 2.1.0. 2023-10-02 20:00:53 +09:00
BuildSettings.jpg v1.0.3 update NRSDK version to 1.10.2. update OpenCVForUnity version to 2.5.6. Added NrealFaceDetectorYNExample, NrealObjectDetectionYOLOv4Example. 2023-09-26 01:57:28 +09:00
CanonicalMarker-d10-i1-sp500-bb1.pdf v1.0.2 update OpenCVForUnity version to 2.5.1. 2023-01-16 21:28:37 +09:00
ProjectAssets.jpg v1.0.3 update NRSDK version to 1.10.2. update OpenCVForUnity version to 2.5.6. Added NrealFaceDetectorYNExample, NrealObjectDetectionYOLOv4Example. 2023-09-26 01:57:28 +09:00
README.md v1.0.4 update NRSDK version to 2.1.0. 2023-10-02 20:00:53 +09:00
SetupTools_AssetsDownloader.jpg v1.0.3 update NRSDK version to 1.10.2. update OpenCVForUnity version to 2.5.6. Added NrealFaceDetectorYNExample, NrealObjectDetectionYOLOv4Example. 2023-09-26 01:57:28 +09:00
screenshot01.jpg v1.0.0 2022-09-23 19:19:17 +09:00
screenshot02.jpg v1.0.0 2022-09-23 19:19:17 +09:00
screenshot03.jpg v1.0.0 2022-09-23 19:19:17 +09:00
screenshot04.jpg v1.0.0 2022-09-23 19:19:17 +09:00
screenshot05.jpg v1.0.0 2022-09-23 19:19:17 +09:00
screenshot06.jpg v1.0.0 2022-09-23 19:19:17 +09:00
screenshot07.jpg v1.0.1 update OpenCVForUnity version to 2.5.0. Added NrealHumanSegmentationExample. 2022-12-21 18:42:20 +09:00

README.md

NrealLight With OpenCVForUnity Example

Demo Video

Demo NrealLight App

Environment

  • Android (Galaxy S10+ SC-04L)
  • Nreal Light (XREAL Light)
  • Unity 2020.3.48f1+ (NRSDK supports the development environment of Unity 2018.4.X and above.)
  • NRSDK Unity SDK 2.1.0
  • OpenCV for Unity 2.5.6+

Setup

  1. Download the latest release unitypackage. NrealLightWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (NrealLightWithOpenCVForUnityExample)
    • 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 [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")
  4. Import the NRSDK.
  5. Import the NrealLightWithOpenCVForUnityExample.unitypackage.
  6. Add the "Assets/NrealLightWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  7. Build and Deploy to Android device. (See 8. Deploy to Nreal Device)
    • (Print the AR marker "CanonicalMarker-d10-i1-sp500-bb1.pdf" on an A4 size paper)

|SetupTools_AssetsDownloader|Project Assets|Build Settings| |---|---| |SetupTools_AssetsDownloader.jpg|ProjectAssets.jpg|BuildSettings.jpg|

ScreenShot

screenshot01.jpg

screenshot02.jpg

screenshot03.jpg

screenshot04.jpg

screenshot05.jpg

screenshot05.jpg

screenshot05.jpg