Toybrick

楼主: troy

Rock-X AI组件库1.2.0 SDK发布(C&&Python)

 

嘻嘻哈哈

注册会员

积分
87
发表于 2019-6-25 10:04:06 | 显示全部楼层
嘻嘻哈哈 发表于 2019-6-25 10:00
库和系统应该是匹配的

我没有编译,直接拿sdk来用,出现这样的错误
回复

使用道具 举报

troy

版主

积分
2346
 楼主| 发表于 2019-6-25 10:19:57 | 显示全部楼层
嘻嘻哈哈 发表于 2019-6-25 10:04
我没有编译,直接拿sdk来用,出现这样的错误

自带的demo编译运行正常吗,你出错是在QT下要用的时候出错吗?
回复

使用道具 举报

AI_liu

注册会员

积分
138
发表于 2019-6-25 10:38:58 | 显示全部楼层
yhc 发表于 2019-6-25 09:01
可以改成这样,内部会自己对out_img分配内存,外面不需要malloc了

如果我是一个画面多个人都想识别,代码这样做只是提取到一个人的feature了吧,或者是你们提供的SDK不是针对多人的情况的?
回复

使用道具 举报

yhc

注册会员

积分
177
发表于 2019-6-25 11:00:05 | 显示全部楼层
AI_liu 发表于 2019-6-25 10:38
如果我是一个画面多个人都想识别,代码这样做只是提取到一个人的feature了吧,或者是你们提供的SDK不 ...

人脸检测是可以一次检测多个人脸出来,多人人脸识别需要调用多次rockx_face_align和rockx_face_recognize
回复

使用道具 举报

嘻嘻哈哈

注册会员

积分
87
发表于 2019-6-28 11:02:30 | 显示全部楼层
troy 发表于 2019-6-25 10:19
自带的demo编译运行正常吗,你出错是在QT下要用的时候出错吗?

通过.sh编译出来的可执行文件正常运行,通过链接库,类似于调用opencv的.so库,在qtcreator下面编译不成功
回复

使用道具 举报

DolbyYU

注册会员

积分
105
发表于 2019-6-28 15:11:46 | 显示全部楼层
支持支持!!
回复

使用道具 举报

allforgot

注册会员

积分
64
发表于 2019-6-28 15:15:03 | 显示全部楼层
ubuntu1604 下编译 android 环境出现错误。

  1. ./build-android-rk3399pro-v8a.sh
  2. -- Android: Selected Clang toolchain 'aarch64-linux-android-clang' with GCC toolchain ''
  3. -- The C compiler identification is Clang 8.0.7
  4. -- The CXX compiler identification is Clang 8.0.7
  5. -- Check for working C compiler: /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
  6. -- Check for working C compiler: /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- broken
  7. CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
  8.   The C compiler

  9.     "/home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"

  10.   is not able to compile a simple test program.

  11.   It fails with the following output:

  12.     Change Dir: /home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp
  13.    
  14.     Run Build Command(s):/usr/bin/make cmTC_e0b16/fast && /usr/bin/make -f CMakeFiles/cmTC_e0b16.dir/build.make CMakeFiles/cmTC_e0b16.dir/build
  15.     make[1]: Entering directory '/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp'
  16.     Building C object CMakeFiles/cmTC_e0b16.dir/testCCompiler.c.o
  17.     /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android --gcc-toolchain=/home/allforgot/Downloads/android-ndk-r20/toolchains//prebuilt/linux-x86_64 --sysroot=/home/allforgot/Downloads/android-ndk-r20/sysroot  -isystem /home/allforgot/Downloads/android-ndk-r20/sysroot/usr/include -isystem /home/allforgot/Downloads/android-ndk-r20/sysroot/usr/include/aarch64-linux-android  -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=21 -fexceptions  -g -fPIE   -o CMakeFiles/cmTC_e0b16.dir/testCCompiler.c.o   -c /home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp/testCCompiler.c
  18.     Linking C executable cmTC_e0b16
  19.     /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e0b16.dir/link.txt --verbose=1
  20.     /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android --gcc-toolchain=/home/allforgot/Downloads/android-ndk-r20/toolchains//prebuilt/linux-x86_64 --sysroot=/home/allforgot/Downloads/android-ndk-r20/platforms/android-21/arch-arm64 -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=21 -fexceptions  -g  -fPIE -pie -Wl,--gc-sections  CMakeFiles/cmTC_e0b16.dir/testCCompiler.c.o  -o cmTC_e0b16
  21.     /usr/bin/ld: unrecognised emulation mode: aarch64linux
  22.     Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
  23.     clang: error: linker command failed with exit code 1 (use -v to see invocation)
  24.     CMakeFiles/cmTC_e0b16.dir/build.make:86: recipe for target 'cmTC_e0b16' failed
  25.     make[1]: *** [cmTC_e0b16] Error 1
  26.     make[1]: Leaving directory '/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp'
  27.     Makefile:121: recipe for target 'cmTC_e0b16/fast' failed
  28.     make: *** [cmTC_e0b16/fast] Error 2
  29.    
  30.    

  31.   

  32.   CMake will not be able to correctly generate this project.
  33. Call Stack (most recent call first):
  34.   CMakeLists.txt:3 (project)


  35. -- Configuring incomplete, errors occurred!
  36. See also "/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeOutput.log".
  37. See also "/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeError.log".
复制代码
回复

使用道具 举报

DolbyYU

注册会员

积分
105
发表于 2019-6-28 16:20:07 | 显示全部楼层
allforgot 发表于 2019-6-28 15:15
ubuntu1604 下编译 android 环境出现错误。

编译器错误,看看readme,里面有详细介绍
回复

使用道具 举报

allforgot

注册会员

积分
64
发表于 2019-6-28 17:20:34 | 显示全部楼层
DolbyYU 发表于 2019-6-28 16:20
编译器错误,看看readme,里面有详细介绍

编译通过了,但是运行时 Segmentation fault
  1. ./rockx_face_landmark face4.jpg 68                                             
  2. spec = local:transfer_proxy
  3. Segmentation fault
复制代码
回复

使用道具 举报

allforgot

注册会员

积分
64
发表于 2019-6-29 15:51:39 | 显示全部楼层
Android Studio 编译出现错误:

  1. Error configuring CMake server (E:\SoftwareInstallation\Android\Sdk\cmake\3.10.2.4988404\bin).


  2. CMake Error in .externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeSystem.cmake:


  3.   cmListFileCache: error can not open file.


  4. Call Stack (most recent call first):


  5.   CMakeLists.txt


  6. CMake Error in .externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake:


  7. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake


  8. CMake Error in .externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake:


  9. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake


  10. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe


  11.    Unknown extension ".c" for file
  12. Open File


  13.     G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/CMakeTmp/testCCompiler.c


  14.   try_compile() works only for enabled languages.  Currently these are:


  15.     C CXX


  16.   See project() command to enable other languages.


  17. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken


  18.    The C compiler
  19. Open File


  20.     "E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"


  21.   is not able to compile a simple test program.


  22.   It fails with the following output:


  23.   CMake will not be able to correctly generate this project.


  24. Configuring incomplete, errors occurred!


  25. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/CMakeOutput.log".


  26. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/CMakeError.log".


  27. Error configuring CMake server (E:\SoftwareInstallation\Android\Sdk\cmake\3.10.2.4988404\bin).


  28. CMake Error in .externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeSystem.cmake:


  29.   cmListFileCache: error can not open file.


  30. Call Stack (most recent call first):


  31.   CMakeLists.txt


  32. CMake Error in .externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake:


  33. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake


  34. CMake Error in .externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake:


  35. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake


  36. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe


  37.    Unknown extension ".c" for file
  38. Open File


  39.     G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/CMakeTmp/testCCompiler.c


  40.   try_compile() works only for enabled languages.  Currently these are:


  41.     C CXX


  42.   See project() command to enable other languages.


  43. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken


  44.    The C compiler
  45. Open File


  46.     "E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"


  47.   is not able to compile a simple test program.


  48.   It fails with the following output:


  49.   CMake will not be able to correctly generate this project.


  50. Configuring incomplete, errors occurred!


  51. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/CMakeOutput.log".


  52. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/CMakeError.log".
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表