Unity project with an example on how to run the depthai library in Android.

depthai-android-unity-example

Unity project (built with Unity 2020.3.25f1) with an example on how to run the depthai library in Android.

!depthai unity particle example android

!depthai unity example android

Important

  • This example is a simple example to show how to use the depthai library in Android with Unity. For a proper support of the library in Unity, check the official depthai unity library (link below).
  • Known issue: it is necessary to allow the app to acces the MyriadX (multiple times) every time the app launches. If you have any solutions, please submit a PR.

Repository Info

The repository contains both the Unity project to build the app and the Android Studio project to build the Android library (.aar) for Unity.

  • Unity Depthai Android Example: Unity project with the example scene to build the Android app. Important - Switch to Android before building.
  • depthai-android-api: Android Studio project to buid the Android library (.aar) for Unity. The project contains and empty app (ignore it) and an Android library depthai-android-api. Press the hammer (Make project) in Android Studio to build the library. The compiled library (.aar) will be automatically copied into the Plugins folder of the Unity project.

Compiled App (.apk)

If you want to download the app directly without having to compile the project. You can download it from here:

RGB + Disparity:

https://drive.google.com/file/d/123C3IWq9PXREUvQxnZZVgExs_eSnT-DM/view?usp=sharing

Particle effect (Code coming soon):

https://drive.google.com/file/d/1lIXdfp9rvUkzu6UZXRzzD0vrC04hPNIr/view?usp=sharing

Android JNI Example

Dynamic Library

The arm64 dynamic library (depthai-core) was compiled in Ubuntu 20.04 using the xlink_device_search_improvements branch. If you are interested in compiling it yourself, please ask in the Discord channel referenced below.

License

I have copied directly some of the include folders of the dependency libraries for the Android library. Therefore, all the code except the ones inside the include folder of the Android project are free to use. I will try to fix it adding submodules in the future.

References:

Owner
Ibai Gorordo
Passionate about sensors, technology and their potential to help people.
Ibai Gorordo
Similar Resources

A native plugin for Unity that provides simple packet division and restoration.

uPacketDivision This is a native plug-in that divides a given data (System.IntPtr or array) into specified sizes and restores them regardless of the i

Feb 20, 2022

Unity Scripting in C++

Unity Native Scripting A library to allow writing Unity scripts in native code: C, C++, assembly. Purpose This project aims to give you a viable alter

Dec 27, 2022

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research

Welcome to AirSim AirSim is a simulator for drones, cars and more, built on Unreal Engine (we now also have an experimental Unity release). It is open

Jan 8, 2023

Tests to check the determinism of the basic floating point arithmetic operations on different devices, using Unity and Rust.

Tests to check the determinism of the basic floating point arithmetic operations on different devices, using Unity and Rust.

This repo contains tests to check the determinism (consistency) of the basic floating point arithmetic operations (add, subtract, multiply, divide) on

Dec 20, 2022

Useful cmake macros that help with: compiler/linker flags, collecting sources, PCHs, Unity builds and other stuff.

Useful cmake macros that help with: compiler/linker flags, collecting sources, PCHs, Unity builds and other stuff.

ucm - useful cmake macros ucm is a collection of cmake macros that help with: managing compiler/linker flags collecting source files with grouping in

Dec 20, 2022

A lightweight additive chiptune synthesizer (LV2 and Unity Plugin)

OvenMit Synthesizer kenakofer's first ever synthesizer! Coming initially out of BMusic's excellent tutoral series for lv2 synthesizers, the developer

Dec 8, 2022

HLSL to GLSL language translator based on ATI's HLSL2GLSL. Used in Unity.

HLSL to GLSL shader language translator ⚠️ As of mid-2016, the project is unlikely to have any significant developments. At Unity we are moving to a d

Dec 18, 2022

GLSL optimizer based on Mesa's GLSL compiler. Used to be used in Unity for mobile shader optimization.

GLSL optimizer ⚠️ As of mid-2016, the project is unlikely to have any significant developments. At Unity we are moving to a different shader compilati

Jan 3, 2023

Unity includes a 10,000 NPC scene

luacluster 概要 luacluster分布式游戏服务器框架。特色是实现了万人同屏,实现了无缝大地图,用户开发方式为lua的rpc调用模式,已经接入mongodb。近期计划是写技术白皮书。QQ群:927073440。 [TOC] 1. BUILDING AND INSTALLATION CM

Dec 29, 2022
Comments
  • Samsung s8 app constantly crashes with oak-d attached

    Samsung s8 app constantly crashes with oak-d attached

    After some trial and error finally ive seen output but it didnt last long as after finicky usb-c connection has brownouted or sth the whole setup failed and I didnt managed to get it to work again. Also tried to build it myself using newest unity (2021.2.7)but didnt even asked me of permission to use myriad this time so im probably downgrading it to 2020.3.

An attempt to run fcitx5 on Android

fcitx5-android-poc An attempt to run fcitx5 on Android. Project status It can build, run, and print to stdout. Build Dependencies Android SDK Platform

Jan 8, 2023
Example-application - Example out-of-tree application that is also a module

Zephyr Example Application This repository contains a Zephyr example application. The main purpose of this repository is to serve as a reference on ho

Dec 13, 2022
First open source android modding library for Geometry Dash Based on Hooking-and-Patching-android-template

Android-ML First open source android modding library for Geometry Dash Based on Hooking-and-Patching-android-template Installation Download this githu

Jul 17, 2022
A simple library that helps Android developers to execute JavaScript code from Android native side easily without using Webview.

AndroidJSModule A simple library that helps Android developers to execute JavaScript code from Android native side easily without using Webview. Insta

May 24, 2022
A customized LGL Android mod menu, containing ESP only for PUBG Mobile 1.3.0 for Android
A customized LGL Android mod menu, containing ESP only for PUBG Mobile 1.3.0 for Android

PUBG Mobile ESP Mod Menu A customized LGL mod menu, containing ESP only for PUBG Mobile 1.3.0 for Android. Everything are fixed so it works with both

Mar 19, 2022
A repository for experimenting with elf loading and in-place patching of android native libraries on non-android operating systems.

droidports: A repository for experimenting with elf loading and in-place patching of android native libraries on non-android operating systems. Discla

Dec 15, 2022
Android NDK samples with Android Studio

NDK Samples This repository contains Android NDK samples with Android Studio C++ integration. These samples use the new CMake Android plugin with C++

Dec 27, 2022
Powerful automated tool for reverse engineering Unity IL2CPP binaries
Powerful automated tool for reverse engineering Unity IL2CPP binaries

Powerful automated tool for reverse engineering Unity IL2CPP binaries

Jan 7, 2023
A universal way to create a noclip mod in Unity games (Mono/IIL2CPP)

Universal-Unity-NoClip This projects aim to show how a noclip mod can be created in any unity game, regardless if its using an il2cpp or mono backend.

Dec 21, 2022
Adds proper Apple Pencil support to Unity's InputSystem.

This project aims to create an Apple Pencil device for Unity's InputSystem package. The problem: Unity does not fully integrate with Apple Pencil. App

Dec 11, 2022