|
| 1 | +# Spectacular AI Unity integration example |
| 2 | + |
| 3 | +Spectacular AI SDK fuses data from cameras and IMU sensors (accelerometer and gyroscope) and outputs an accurate 6-degree-of-freedom pose of a device. The SDK also includes a Mapping API that can be used to access the full SLAM map for both real-time and offline 3D reconstruction use cases. |
| 4 | + |
| 5 | +This repository contains example Unity integration for the Spectacular AI DepthAI C++ Plugin, enabling real-time tracking and reconstruction with OAK-D devices straight in Unity. |
| 6 | + |
| 7 | +### Getting started |
| 8 | +You can either, |
| 9 | +1. Clone this repository and open [unity-examples](https://github.com/SpectacularAI/unity-wrapper/tree/main/unity-examples) using Unity Hub. |
| 10 | +``` |
| 11 | +git clone https://github.com/SpectacularAI/unity-wrapper.git |
| 12 | +``` |
| 13 | + |
| 14 | +2. Or, download `spectacularAI.unitypackage` from the [releases page](https://github.com/SpectacularAI/unity-wrapper/releases), and import it directly to your Unity project inside Unity Editor using `Assets->Import Package->Custom Package...` |
| 15 | + |
| 16 | +### Project structure |
| 17 | + |
| 18 | + * **[plugin:](https://github.com/SpectacularAI/unity-wrapper/tree/main/plugin)** contains source code for the `spectacularAI_unity` plugin. A prebuilt version is shipped with the unity-examples for Windows and Linux Ubuntu x84-64 so building the plugin is not necessary to get started. |
| 19 | + * **[unity-examples:](https://github.com/SpectacularAI/unity-wrapper/tree/main/unity-examples)** contains source code for the Unity wrapper and a couple of examples that demonstrate the usage: |
| 20 | + * **[HelloDepthAI](https://github.com/SpectacularAI/unity-wrapper/tree/main/unity-examples/Assets/SpectacularAI/Examples/HelloDepthAI)** Minimal OAK-D example. Shows how to use the SDK to track the pose of OAK-D device in real-time. |
| 21 | + * **[MappingVisu](https://github.com/SpectacularAI/unity-wrapper/tree/main/unity-examples/Assets/SpectacularAI/Examples/MappingVisu)** SLAM example. Build and visualize 3D point cloud of the environment in real-time using OAK-D device. |
| 22 | + * **[AprilTag](https://github.com/SpectacularAI/unity-wrapper/tree/main/unity-examples/Assets/SpectacularAI/Examples/AprilTag)** April Tag integration example. Place April Tags using Unity Editor. The April Tags are then input to the SDK enabling absolute positioning. |
| 23 | + * **[HelloReplay](https://github.com/SpectacularAI/unity-wrapper/tree/main/unity-examples/Assets/SpectacularAI/Examples/HelloReplay)** Minimal Replay API example. Shows how to use the Replay API in Unity to replay your recordings. |
| 24 | + |
| 25 | +### Quick links |
| 26 | + |
| 27 | +#### [SDK documentation](https://spectacularai.github.io/docs/sdk/) |
| 28 | +#### [C++ release packages](https://github.com/SpectacularAI/sdk/releases) |
| 29 | + |
| 30 | +## Copyright |
| 31 | + |
| 32 | +The examples in this repository are licensed under Apache 2.0 (see LICENSE). |
| 33 | + |
| 34 | +The SDK itself (not included in this repository) is proprietary to Spectacular AI. |
| 35 | +For commerical licensing options and more SDK variants (ARM binaries & C++ API), |
| 36 | +contact us at https://www.spectacularai.com/#contact. |
0 commit comments