https://github.com/enoxsoftware/magicleapwithopencvforunityexample
MagicLeap with OpenCVforUnity Example
https://github.com/enoxsoftware/magicleapwithopencvforunityexample
magicleap opencv unity
Last synced: 10 months ago
JSON representation
MagicLeap with OpenCVforUnity Example
- Host: GitHub
- URL: https://github.com/enoxsoftware/magicleapwithopencvforunityexample
- Owner: EnoxSoftware
- Created: 2019-01-30T14:52:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T16:29:17.000Z (over 4 years ago)
- Last Synced: 2025-05-05T15:09:52.252Z (about 1 year ago)
- Topics: magicleap, opencv, unity
- Language: C#
- Homepage:
- Size: 3.38 MB
- Stars: 21
- Watchers: 2
- Forks: 8
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MagicLeap With OpenCVForUnity Example
## Environment
* MagicLeapOne Lumin OS 0.98.30
* Lumin SDK 0.26
* Unity 2020.3.29f1 (64-bit)
* [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.4.7+
## Setup
1. Download the latest release unitypackage. [MagicLeapWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/MagicLeapWithOpenCVForUnityExample/releases)
1. Create a new project. (MagicLeapWithOpenCVForUnityExample) and [setup UnityProject](https://developer.magicleap.com/en-us/learn/guides/import-the-magic-leap-unity-package).
* Import the Magic Leap SDK for Unity asset from the [Unity Asset Store](https://assetstore.unity.com/packages/tools/integration/magic-leap-sdk-for-unity-194780).

* Setup MagicLeap PROJECT SETUP TOOL.

* Copy [the "MagicLeap" folder](https://github.com/magicleap/MagicLeapUnityExamples/tree/main/Assets) to your project.
1. Import the OpenCVForUnity.
* Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
* Move the "OpenCVForUnity/StreamingAssets/" folder to the "Assets/" folder.
* Downlod https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov3-tiny.cfg. Copy yolov3-tiny.cfg to "Assets/StreamingAssets/dnn/" folder. Downlod https://pjreddie.com/media/files/yolov3-tiny.weights. Copy yolov3-tiny.weights to "Assets/StreamingAssets/dnn/" folder. Downlod https://github.com/pjreddie/darknet/tree/master/data/coco.names. Copy coco.names to "Assets/StreamingAssets/dnn/" folder.
1. Import the MagicLeapWithOpenCVForUnityExample.unitypackage.

1. Add the "Assets/MagicLeapWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
1. Check CameraCapture and ComputerVision checkbox in Publishing Settings.

1. Build and Deploy to MagicLeap.
## ScreenShot

