Android example to get the rgb and disparity images from the OAK-D device connected to a phone.
depthai_android_jni_detections.mp4
- This example is a simple example to show how to use the depthai library in Android and still it is in progress, so expect bugs. For a proper support of the library in Android, you will have to wait a bit more for the official release.
- 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.
If you want to download the app directly without having to compile the project. You can download it in the Release tab.
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.
I have copied directly some of the include folders for some of the dependency libraries. Therefore, all the code except the ones inside the include folder are free to use. I will try to fix it adding submodules in the future.
- depthai-core: https://github.com/luxonis/depthai-core. To build the depthai library for Android, particularly, the xlink_device_search_improvements branch.
- Luxonis Community Discord: https://discord.gg/tPczgVdk. Check there to get updates and other information about the products from Luxonis.
- Colormap function: https://www.particleincell.com/2014/colormap. Used to draw the disparity by modifying the Short Rainbow example.