15、OAK深度相机在android系统进行实例分割并且测据

基本思想:在官方源码得基础上,进行工程裁剪,进行深度相机的目标检测和测距离,和官方代码有差别,去掉了官方得opencv源码,然后重写了分割逻辑

oak深度相机 && android手机目前测到11以上和鸿蒙系统支持 && 需要一根type-c转type-c数据线

 第一步:修改cmakelists.txt,这里是用nihui小灰编译的opencv库

# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.18.1)

set(BUILD_SHARED_LIBS ON)

option(DEPTHAI_BUILD_EXAMPLES OFF)

add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/depthai-core)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/libusb)

# Declare after depthai because of `hunt

猜你喜欢

转载自blog.csdn.net/sxj731533730/article/details/130968060