FastCV实例cornerApp讲解

FastCV实例cornerApp讲解
    cornerApp是一个使用了aDSP加速的基本用例,其在Hexagon SDK中的目录内容如下:

    glue:包含依赖Hexagon SDK的其他模块的构建系统信息;
    android.min:构建android可执行程序的信息;
    hexagon.min:包含编译aDSP库和测试执行程序所需要的信息;
    Makefile:编译脚本
    inc/cornerApp.idl:定义了FastRPC接口;
    src/cornerApp.c:测试aDSP角点检测算法程序的源码。

cornerApp的编译和运行
  • cd <hexagon dir>/examples/fastcv/cornerApp

        <hexagon dir>是我们所安装的hexagon主目录

  • make tree V=android_ReleaseG

        tree命令可以让我们编译出所以来的其他库文件

  • adb root
  • adb remount

        执行以上步骤后才可以向手机push文件

        rfsa/adsp目录用来存放adsp相关的库文件

  • adb shell mkdir -p /system/lib/rfsa/adsp
  • adb push hexagon_ReleaseG_dynamic/ship/libcornerApp_skel.so /system/lib/rfsa/adsp
  • adb push ../../../lib/fastcv/dspCV/hexagon_ReleaseG_dynamic/ship/libdspCV_skel.so /system/lib/rfsa/adsp
  • adb push ../../../lib/fastcv/fastcv/hexagon_ReleaseG_dynamic/libfastcvadsp.so /system/lib/rfsa/adsp
  • adb push ../../../lib/common/apps_mem_heap/hexagon_ReleaseG_dynamic/libapps_mem_heap.so /system/lib/rfsa/adsp

       拷贝cornerApp相关的文件到手机上并修改可执行权限

  • adb push android_ReleaseG/ship/libcornerApp.so /vendor/lib
  • adb push android_ReleaseG/ship/cornerApp /data/local
  • adb shell chmod 755 /data/local/cornerApp

        运行cornerApp程序即可

  • adb shell
  • cd /data/local
  • ./cornerApp


  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值