• [MindX SDK] MindX SDK支持A200DK和A500吗
    文档的系统与环境要求里都是A300卡,请问MindX SDK支持A200(RC)、A200DK和A500吗
  • 调用projectman接口,sdk封装实体类型与api接口不一致导致报错
    sdk: huaweicloud-sdk-projectman版本:3.0.34-rc 调用ListProjectWorkHours按用户查询工时(多项目)接口 api:sdk中封装的实体:类似的问题还有:listProjectsV4
  • OBS C SDK基于Windows进行编译
    基于Windows编译OBS C SDK指南背景    在Windows下使用OBS C SDK,希望编译成DLL动态链接库文件供工程使用。编译C SDK方法一:进入"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\build"目录下,启动cmd,执行如下命令:"build.bat windows release x64" 编译x64系统下的产物;如果出现如下错误信息,则需要修改编译脚本文件中的换行符格式:打开notepad++软件,利用notepad++打开build.bat及build_x64.bat两个文件,确认右下角的换行符格式,如果为Unix(LF)则需要通过鼠标右键修改为Windows(CR LF):修改后的格式如下:修改完成后重新执行"build.bat windows  release x64"命令,最终输出无错误信息即表明编译成功:编译产物见"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\build\obs\windows.zip"文件注意:使用该脚本进行编译时,由于项目依赖Visual studio2010版本,因此需要在本地预先安装过VS2010版本;如果不希望在本地额外安装VS2010版本,可以参考方式二进行编译;方法二:基于visual studio进行编译;此处基于visual studio2015进行编译作为示例;1、打开编译工程打开visual studio 2015,选择File->Open->Project/Solution打开源代码目录下的编译工程(目录:"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\sln\vc100\obs.sln"),打开工程时如出现如下提示是否升级项目的编译器及依赖库时,选择Cancel(表示依赖VS2010编译工具进行编译,如果本地未安装过VS2010,请参考常见问题中的解决方案);2、编译工程选择Build->Rebuild重新编译工程;出现如下提示代表工程编译成功;编译产物见目录:"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\build\vc100\Release"常见问题:a. 提示缺少VS2010 VC100工具集出现该问题的原因是该工程默认采用VS2010工具集进行编译,如果本地环境中未安装过VS2010时将会提示该问题;以visual studio2017版本为例展示该问题解决方案:1、在工程上右键选择重定向项目2、重定向项目至指定平台工具集及SDK版本(以VS2017为例,平台工具集版本为V141)3、替换“your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++lib\win64_x64_msvc\release”目录下的libxml2.lib文件为附件中的libxml2.lib及libxml2.dll文件,否则在高版本VS中编译会提示该依赖库为低版本VS中编译,导致工程编译失败;替换完成后重新编译工程即可;测试C SDK方式一:直接使用提供的测试工程1、打开测试工程打开visual studio 2015,选择File->Open->Project/Solution打开源代码目录下的测试工程(测试工程目录:"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\build\obs\demo\sln\obs_demo.sln");选择对应的发布版本及平台2、编译测试工程选择Build->Rebuild编译测试工程;常见问题:a. 如果出现如下错误,表明未在当前工程路径下找到对应的lib文件,请将上一步中编译得到的libeSDKOBS.lib及huaweisecurec.lib复制到测试工程目录下("your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\build\obs\demo\sln")再重新执行编译;b. 编译过程中出现如下错误时需修改工程配置选项;右键单击工程Properties->Linker->Command Line Additional Options,添加/SAFESEH:NO ;输出如下结果时代表编译测试工程成功,可以根据实际需要配置测试工程中的ACCESS_KEY_ID(对应AK)、SECRET_ACCESS_KEY(对应SK)、HOST_NAME(对应EndPoint)等信息来调用相关接口进行测试;c. 在高版本VS中运行时出现提示“无法从const char* 转换为char*”;出现该问题时,可以通过设置Properties->C/C++->Language->Conformance mode(符合模式)为否来解决;方式二:新建测试工程导入SDK库基于visual studio 2015:1、新建测试工程打开visual studio 2015,File->New->Project新建Visual C++ Win32 Console Application;2、增加项目依赖头文件路径右键工程选择Properties->C/C++->General->Additional Include Directories,添加"your-sdk-path\platform\huaweisecurec\include","your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\inc"到项目依赖头文件路径中;3、配置依赖的库文件:将上一步中编译得到的libeSDKOBS.lib、huaweisecurec.lib文件添加到工程源文件目录下;同时配置工程的额外依赖:Properties->Linker->Input->Additional Dependencies配置完成后,编译测试工程,出现如下图示代表测试工程编译完成;此时即可在测试工程中直接调用SDK中的相关接口访问OBS;要执行该测试工程还需要引入依赖的DLL动态链接库文件;将上一步骤编译得到的libeSDKOBS.dll、huaweisecurec.dll文件添加到工程源文件目录下;将依赖的第三方库文件libcurl.dll、libeay32.dll、ssleay32.dll、pcre.dll、eSDKLogAPI.dll、log4cpp.dll;同时配置工程的依赖库目录:Properties->Linker->General->Addditional Library Directories;库文件目录:libcurl.dll->"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\bin\win64_x64_msvc\release\libcurl.dll"libeay32.dll->"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\bin\win64_x64_msvc\release\libeay32.dll"ssleay32.dll->"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\bin\win64_x64_msvc\release\ssleay32.dll"pcre.dll->"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\bin\win64_x64_msvc\release\pcre.dll"eSDKLogAPI.dll->"your-sdk-path\platform\eSDK_LogAPI_V2.1.10\C\release_x64\eSDKLogAPI.dll"log4cpp.dll->"your-sdk-path\platform\eSDK_LogAPI_V2.1.10\C\release_x64\log4cpp.dll"注意:如果在编译SDK工程时采用了高版本VS进行编译,同时用附件中的libxml2替换了原路径下的libxml2.lib文件,则还需要将libxml2.dll文件添加到工程源文件目录下;libxml2.dll->"your-sdk-path\source\eSDK_OBS_API\eSDK_OBS_API_C++\bin\win64_x64_msvc\release\libxml2.dll"添加完依赖库目录后编译运行即可执行测试工程;常见问题a. 提示缺少MSVCR100.dll文件;原因是当前系统上缺少低版本运行库文件MSVCR100.dll,下载到该文件并放于系统C:\Windows\System32或C:\Windows\SysWOW64目录下即可;对于高版本Visual studio,新建测试工程并引入SDK动态链接库的方法与VS2015基本一致。
  • [MindX SDK] MindX SDK 插件开发 遇到的问题
    按产品文档生成新的插件后,用C++代码测试,运行正常,如下图所示:用python代码测试,则报错崩溃, 原因未知,报错信息如下:
  • [问题求助] 【atlasDK200 C73版本】【语音唤醒】推理一直阻塞
    【功能模块】使用cce-gdb 运行bin语音唤醒在wav2word项目上改造的输入模型是1*99*10   , 我试了不行有改成1*990 和 1*99*10*1,都不行代码阻塞在: ret = processModel.Execute();        if (ret != SUCCESS) {            ERROR_LOG("execute inference failed");            aclrtFree(picDevBuffer);            return FAILED;        }多问一句:atlas是用的小端吗?【操作步骤&问题现象】1、2、【截图信息】【日志信息】(可选,上传日志内容或者附件)root@davinci-mini:/home/HwHiAiUser/HIAI_PROJECTS/workspace_mind_studio/wav2word_4d133c60/out# cce-gdb workspace_mind_studio_wav2word_initialize_cce_nat registerGNU gdb (GDB) 7.12Copyright (C) 2016 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.  Type "show copying"and "show warranty" for details.This GDB was configured as "aarch64-linux-gnu".Type "show configuration" for configuration details.For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".Type "apropos word" to search for commands related to "word"...Reading symbols from workspace_mind_studio_wav2word...(no debugging symbols found)...done.(gdb) rStarting program: /home/HwHiAiUser/HIAI_PROJECTS/workspace_mind_studio/wav2word_4d133c60/out/workspace_mind_studio_wav2word[Thread debugging using libthread_db enabled]Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".[INFO]  acl init success[New Thread 0xfffeed08af90 (LWP 5090)][New Thread 0xfffeec889f90 (LWP 5091)][New Thread 0xfffeec088f90 (LWP 5092)][New Thread 0xfffeeb887f90 (LWP 5093)][New Thread 0xfffeeb086f90 (LWP 5094)][EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:19.615.750 [hardware/npu_inc/../dev_core/devdrv/devdrv_fd.c:106][devdrv] [drvDeviceOpen 106] /dev/davinci0 open successfully.[New Thread 0xfffeea901f90 (LWP 5095)][New Thread 0xfffeea8e0f90 (LWP 5096)][INFO]  open device 0 success[INFO]  create context success[INFO]  create stream success[INFO]  get run mode success[INFO]  start run mode[New Thread 0xfffee2ffbf90 (LWP 5097)][New Thread 0xfffee27faf90 (LWP 5098)][New Thread 0xfffee1ff9f90 (LWP 5099)][New Thread 0xfffee17f8f90 (LWP 5100)][New Thread 0xfffee0ff7f90 (LWP 5101)][New Thread 0xfffee07f6f90 (LWP 5102)][New Thread 0xfffedfff5f90 (LWP 5103)][New Thread 0xfffedf7f4f90 (LWP 5104)][New Thread 0xfffedeff3f90 (LWP 5105)][New Thread 0xfffede7f2f90 (LWP 5106)][New Thread 0xfffeddff1f90 (LWP 5107)][New Thread 0xfffedd7f0f90 (LWP 5108)][New Thread 0xfffedcfeff90 (LWP 5109)][New Thread 0xfffedc7eef90 (LWP 5110)][New Thread 0xfffedbfedf90 (LWP 5111)][New Thread 0xfffedb7ecf90 (LWP 5112)][Thread 0xfffee07f6f90 (LWP 5102) exited][Thread 0xfffedbfedf90 (LWP 5111) exited][Thread 0xfffeddff1f90 (LWP 5107) exited][Thread 0xfffede7f2f90 (LWP 5106) exited][Thread 0xfffee1ff9f90 (LWP 5099) exited][Thread 0xfffee2ffbf90 (LWP 5097) exited][Thread 0xfffee0ff7f90 (LWP 5101) exited][Thread 0xfffee17f8f90 (LWP 5100) exited][Thread 0xfffee27faf90 (LWP 5098) exited][Thread 0xfffedb7ecf90 (LWP 5112) exited][Thread 0xfffedc7eef90 (LWP 5110) exited][Thread 0xfffedcfeff90 (LWP 5109) exited][Thread 0xfffedd7f0f90 (LWP 5108) exited][Thread 0xfffedeff3f90 (LWP 5105) exited][Thread 0xfffedf7f4f90 (LWP 5104) exited][EVENT] GE(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:19.671.211 [framework/domi/executor/../graph/load/new_model_manager/davinci_model.cc:543]5087 Init:[GEPERFTRACE] The time cost of GraphLoader::TransAllVarData is [28110] micro second.[Thread 0xfffedfff5f90 (LWP 5103) exited][EVENT] GE(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:19.671.735 [framework/domi/executor/../graph/load/new_model_manager/davinci_model.cc:553]5087 Init:[GEPERFTRACE] The time cost of GraphLoader::InitModelMem is [264] micro second.[EVENT] GE(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:19.674.566 [framework/domi/executor/../graph/load/new_model_manager/davinci_model.cc:767]5087 InitNodes:[GEPERFTRACE] The time cost of GraphLoader::LoadTBEKernelBinToOpDesc. is [182] micro second, call num is 92[EVENT] GE(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:19.674.701 [framework/domi/executor/../graph/load/new_model_manager/davinci_model.cc:768]5087 InitNodes:[GEPERFTRACE] The time cost of GraphLoader::InitTbeHandle. is [1837] micro second, call num is 85[New Thread 0xfffedb7ecf90 (LWP 5113)][EVENT] GE(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:21.960.280 [framework/domi/executor/../graph/load/new_model_manager/davinci_model.cc:581]5087 Init:[GEPERFTRACE] The time cost of GraphLoader::DoTaskSink is [2285170] micro second.[INFO]  load model ../model/lfg0227.om success[INFO]  create model description success[INFO]  create model output success[INFO]  start to process file:../data/features990.bin[INFO]  get run mode success 1[INFO]  get run mode success 2[New Thread 0xfffedbfedf90 (LWP 5114)][EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.152.931 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:177][devdrv] [drvDfxShowReport 177]  KEY INFO[0][14]: reportcount(80), cmdcount(132), timeout(1)[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.153.116 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:182][devdrv] [drvDfxShowReport 182] devid: 0, cq id: 14, cq head: 80, cq tail: 80, cq info phase: 1, cq user phase: 1.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.153.275 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 75, slot phase: 1, streamID: 802, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.153.432 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 76, slot phase: 1, streamID: 802, taskID: 2.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.153.588 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 77, slot phase: 1, streamID: 802, taskID: 2.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.153.759 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 78, slot phase: 1, streamID: 290, taskID: 8.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.153.916 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 79, slot phase: 1, streamID: 35, taskID: 1.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.154.071 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 80, slot phase: 0, streamID: 0, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.154.227 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 81, slot phase: 0, streamID: 0, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.154.382 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 82, slot phase: 0, streamID: 0, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.154.536 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 83, slot phase: 0, streamID: 0, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:27.154.692 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 84, slot phase: 0, streamID: 0, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:32.272.890 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:177][devdrv] [drvDfxShowReport 177]  KEY INFO[0][14]: reportcount(80), cmdcount(132), timeout(2)[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:32.274.395 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:182][devdrv] [drvDfxShowReport 182] devid: 0, cq id: 14, cq head: 80, cq tail: 80, cq info phase: 1, cq user phase: 1.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:32.274.556 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowReport 192] devid: 0, cq_index: 14, index: 75, slot phase: 1, streamID: 802, taskID: 0.[EVENT] DRV(5087,workspace_mind_studio_wav2word):2021-02-27-11:29:32.274.709 [hardware/npu_inc/../dev_core/devdrv/devdrv_command.c:192][devdrv] [drvDfxShowRepor还要很多重复的没都贴
  • [PLC专区] 【尾端msdk产品】【使用msdk里面提供的uart-demo问题】
    【功能模块】【操作步骤&问题现象】1、使用msdk里面的UART-demo,发现串口打不开?我是直接用里面的demo跑的是否需要在MSDK里面开启串口功能?比如权限,或者其他的【截图信息】【日志信息】(可选,上传日志内容或者附件)
  • [设备专区] 【ARcore】【软件版本】求核心板和尾端msdk的稳定版本
    【功能模块】核心板软件版本:[admin@huawei ~]$ version -dsoftware version:V200R020C00B508cpld version:20.9.28.14patch version: --尾端msdk版本:MSDK_COMMON_200.020.10-050【操作步骤&问题现象】我使用的核心板软件和尾端msdk好像都不是稳定版本的,请帮忙推荐一个稳定的软件版本,以及下载链接,谢谢【截图信息】无【日志信息】(可选,上传日志内容或者附件)无
  • [问题求助] go sdk 上传同一份文件导致不会变化
    基于最新的 go sdk, 上传同一份txt文件导致不会变化.大概隔几分钟再次上传就会变化. 为什么.每次上传文件名称一样,内容不一样,不能更新呢??obsClient.PutObject(input)
  • [MindX SDK] 【MindX SDK】基于mxManufacture套件的视频流目标检测
    环境:硬件设备Atlas800-3010 CANN(20.2) MindX SDK(20.2) 1、安装ffmpeg 将视频文件转为h264Ffmpeg下载链接https://github.com/FFmpeg/FFmpeg/archive/n4.2.1.tar.gz 切换到ffmpeg解压后的目录下./configure --prefix=/usr/local/ffmpeg --enable-sharedmake -jmake install 转换命令ffmpeg -i dd.mp4  -an -vcodec libx264 -crf 30 dd.2642、安装live555 进行推流h264文件git clone https://github.com/xanview/live555 下载源代码tar zxvf live555-latest.tar.tar 解压cd live555./genMakefiles linux 区别于传统的源码包,不是传统的配置方式,而是通过genMakefiles配对目录下的config.*文件生成Makefilemake拷贝h264文件到mediaserver目录下在编译目录下的mediaserver下运行live555MediaServer服务3、准备模型切换到samples\mxManufacture\models目录下,根据使用的模型使用atc工具转换(支持的模型有限制,具体看手册)样例使用的是yolov3模型下下载pd文件https://www.huaweicloud.com/ascend/resources/modelzoo/Models/5cb8d2255070439d94068b7935570c43atc --model=./yolov3_tf.pb --framework=3 --output=./yolov3_tf_bs1_fp16 --soc_version=Ascend310 --insert_op_conf=./aipp_yolov3_416_416.aippconfig --input_shape="input/input_data:1,416,416,3" --out_nodes="conv_lbbox/BiasAdd:0;conv_mbbox/BiasAdd:0;conv_sbbox/BiasAdd:0"4、流程编排 Pipeline文件5、AI应用开发与运行步骤--业务集成int main(int argc, char* argv[]){    // read image file and build stream input    MxStream::MxstDataInput dataBuffer;    APP_ERROR ret;    // read pipeline config file    std::string pipelineConfigPath = "../pipeline/rtsp.pipeline";     std::string pipelineConfig = ReadPipelineConfig(pipelineConfigPath);    if (pipelineConfig == "") {        LogError << "Read pipeline failed.";        return APP_ERR_COMM_INIT_FAIL;    }    // init stream manager    MxStream::MxStreamManager mxStreamManager;    ret = mxStreamManager.InitManager();    if (ret != APP_ERR_OK) {        LogError << "Failed to init Stream manager, ret = " << ret << ".";        return ret;    }    // create stream by pipeline config file    ret = mxStreamManager.CreateMultipleStreams(pipelineConfig);    if (ret != APP_ERR_OK) {        LogError << "Failed to create Stream, ret = " << ret << ".";        return ret;    }     std::string streamName = "detection";      MxStream::MxstDataOutput* output = nullptr;     std::string result;    LogInfo << "Results:" << result;    signal(SIGINT,SigHandler);    while(!signalRecieved)    {        usleep(10000);        output = nullptr;//根据StreamName往指定Stream获取输出数据        output = mxStreamManager.GetResult(streamName, 0);         if (output == nullptr) {            LogInfo << " GetResult stream " << streamName << "NULL";            break;          }        else        {            result = std::string((char *)output->dataPtr, output->dataSize);            LogInfo << "Results:" << result;        }    }    // destroy streams    mxStreamManager.DestroyAllStreams();    delete output;    return 0;}6、设置日志打印等级为debug模式vi config/logging.conf…….# will output to stderr and file, where level >= global_level, default is 0# Log level: -1-debug, 0-info, 1-warn, 2-error, 3-fatalglobal_level=-1……. 7、编写编译脚本根据相关路径Vi complie.sh #!/bin/bashset -eCUR_PATH=$(cd "$(dirname "$0")" || { warn "Failed to check path/to/run.sh" ; exit ; } ; pwd)# Simple log helper functionsinfo() { echo -e "\033[1;34m[INFO ][MxStream] $1\033[1;37m" ; }warn() { echo >&2 -e "\033[1;31m[WARN ][MxStream] $1\033[1;37m" ; }export MX_SDK_HOME="${CUR_PATH}/../../.."export LD_LIBRARY_PATH="${MX_SDK_HOME}/lib":"${MX_SDK_HOME}/opensource/lib":"${MX_SDK_HOME}/opensource/lib64":"/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64":${LD_LIBRARY_PATH}export GST_PLUGIN_SCANNER="${MX_SDK_HOME}/opensource/libexec/gstreamer-1.0/gst-plugin-scanner"export GST_PLUGIN_PATH="${MX_SDK_HOME}/opensource/lib/gstreamer-1.0":"${MX_SDK_HOME}/lib/plugins"export GST_DEBUG=3# complieg++ rtsp.cpp -I "${MX_SDK_HOME}/include/" -I "${MX_SDK_HOME}/opensource/include/" -L "${MX_SDK_HOME}/lib/" -L "${MX_SDK_HOME}/opensource/lib/" -L "${MX_SDK_HOME}/opensource/lib64/" -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -fstack-protector-all -g -Wl,-z,relro,-z,now,-z,noexecstack -pie -O2 -Wall -lglog -lmxbase -lstreammanager -lprotobuf -lmxpidatatype -o main exit 08、运行程序./main 可以看到打印结果:Results:{"MxpiObject":[{"classVec":[{"classId":14,"className":"bird","confidence":0.99935328999999995,"headerVec":[]}],"x0":227.35630800000001,"x1":526.82238800000005,"y0":198.10972599999999,"y1":557.58032200000002}]}  代码见附件
  • [设备专区] 【plc尾端】【msdk】尾端任务创建以及放权函数使用
    【功能模块】plc尾端的任务创建以及放权函数【操作步骤&问题现象】1,目前plc尾端的软件开发手册里面没有写任务创建以及任务放权函数的使用,请问华为那边推荐使用哪个函数?2,另外,创建任务,我是否可以理解为创建了一个线程?【截图信息】无【日志信息】(可选,上传日志内容或者附件)无
  • [MindX SDK] 【Atlas800-3000】【MindX SDK】样例代码运行出现错误
    [求助]【功能模块】MindX SDK样例代码文档https://support.huaweicloud.com/ug-mfac-mindxsdk/atlasmx_02_0165.htmlACL 20.1版本【操作步骤&问题现象】1、下载模型文件   2、配置atc环境变量export install_path=/usr/local/Ascend/ascend-toolkit/latestexport PATH=/usr/local/python3.7.5/bin:${install_path}/atc/ccec_compiler/bin:${install_path}/atc/bin:$PATHexport PYTHONPATH=${install_path}/atc/python/site-packages:${install_path}/atc/python/sitepackages/auto_tune.egg/auto_tune:${install_path}/atc/python/site-packages/schedule_search.eggexport LD_LIBRARY_PATH=${install_path}/atc/lib64:$LD_LIBRARY_PATHexport ASCEND_OPP_PATH=${install_path}/opp3、转换模型--成功转换atc --model=./yolov3_tf.pb --framework=3 --output=./yolov3_tf_bs1_fp16 --soc_version=Ascend310 --insert_op_conf=./aipp_yolov3_416_416.aippconfig --input_shape="input/input_data:1,416,416,3" --out_nodes="conv_lbbox/BiasAdd:0;conv_mbbox/BiasAdd:0;conv_sbbox/BiasAdd:0"atc --model=./resnet50_v1.5.pb --framework=3 --output=resnet50_aipp_tf --output_type=FP32 --soc_version=Ascend310 --input_shape=input_tensor:1,224,224,3 --insert_op_conf=./aipp_resnet50_224_224.aippconfig4、配置编译环境变量export LD_LIBRARY_PATH=../../lib:../../opensource/lib:../../opensource/lib64:../../lib/plugins:/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64:${LD_LIBRARY_PATH}5、编译 --成功编译g++ main.cpp -I ../../include/ -I ../../opensource/include/ -L ../../lib/ -L ../../opensource/lib/ -L ../../opensource/lib64/ -std=c++11 -fPIC -fstack-protector-all -g -Wl,-z,relro,-z,now,-z,noexecstack -pie -O2 -Wall -lglog -lstreammanager -lmxbase -lplugintoolkit -lmxpidatatype -lcpprest -lprotobuf -o main6、配置运行环境 export MX_SDK_HOME=$PWDexport GST_PLUGIN_SCANNER=../../opensource/libexec/gstreamer-1.0/gst-plugin-scannerexport GST_PLUGIN_PATH=../../opensource/lib/gstreamer-1.0:../../lib/plugins6、运行可执行文件./main【截图信息】【日志信息】(可选,上传日志内容或者附件)WARNING: Logging before InitGoogleLogging() is written to STDERRI1226 07:22:00.347729  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.347774  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.347784  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.347923  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.347934  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.347942  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.349318  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.349339  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.349349  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.350816  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.350845  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.350855  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.352303  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.352324  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.352332  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.353976  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.354001  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.354010  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.354027  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.354036  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.354044  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.356112  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.356139  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.356149  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.356165  4576 MxsmElement.cpp:351] Gets the element class successfully.I1226 07:22:00.356180  4576 MxsmElement.cpp:656] Validates element properties successfully.I1226 07:22:00.356189  4576 MxsmElement.cpp:681] Validates element object successfully.I1226 07:22:00.356195  4576 MxsmStream.cpp:678] Validates stream object successfully.I1226 07:22:00.356380  4576 MxsmElement.cpp:96] Sets element(appsink0) to async.I1226 07:22:00.356391  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.356405  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.356411  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.356417  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.356437  4576 MxsmStream.cpp:275] transMode_=0I1226 07:22:00.356475  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.356521  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.356535  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.356542  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.356549  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.356566  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.356600  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.356681  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.356695  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.356719  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.356725  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.356731  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.356750  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.356773  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.356824  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.356837  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.356849  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.356868  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.356875  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.356881  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.356897  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.356920  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.356972  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.356984  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.356997  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357004  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.357012  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.357028  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.357053  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.357108  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.357120  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.357132  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357149  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357167  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357182  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357188  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.357194  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.357210  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.357234  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.357290  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.357303  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.357314  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357329  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357336  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.357344  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.357360  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.357388  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.357461  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.357475  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.357486  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357503  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357517  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357532  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357544  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357558  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357564  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.357570  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.357586  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.357614  4576 MxGstBase.cpp:88] Element instance: GstMxBaseInit intoI1226 07:22:00.357677  4576 MxGstBase.cpp:120] Element instance: init success.I1226 07:22:00.357690  4576 MxsmElement.cpp:185] Handles speciall element successfully.I1226 07:22:00.357702  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357717  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357730  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357743  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357758  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357770  4576 MxsmElement.cpp:219] Sets element property successfully.I1226 07:22:00.357777  4576 MxsmElement.cpp:240] Sets element properties successfully.I1226 07:22:00.357784  4576 MxsmElement.cpp:297] Creates a element successfully.I1226 07:22:00.357800  4576 MxsmStream.cpp:283] Adds element to Stream successfully.I1226 07:22:00.357854  4576 MxsmElement.cpp:702] Links appsrc0 and mxpi_imagedecoder0 successfully.I1226 07:22:00.357888  4576 MxsmElement.cpp:702] Links mxpi_dataserialize0 and appsink0 successfully.I1226 07:22:00.357913  4576 MxsmElement.cpp:702] Links mxpi_imagecrop0 and mxpi_imageresize1 successfully.I1226 07:22:00.357937  4576 MxsmElement.cpp:702] Links mxpi_imagedecoder0 and mxpi_imageresize0 successfully.I1226 07:22:00.357960  4576 MxsmElement.cpp:702] Links mxpi_imageresize0 and mxpi_modelinfer0 successfully.I1226 07:22:00.357982  4576 MxsmElement.cpp:702] Links mxpi_imageresize1 and mxpi_modelinfer1 successfully.I1226 07:22:00.358006  4576 MxsmElement.cpp:702] Links mxpi_modelinfer0 and mxpi_imagecrop0 successfully.I1226 07:22:00.358028  4576 MxsmElement.cpp:702] Links mxpi_modelinfer1 and mxpi_dataserialize0 successfully.I1226 07:22:00.358036  4576 MxsmStream.cpp:323] Links elements successfully.[EVENT] TDT(4576,main):2020-12-26-07:22:00.364.789 [tdt/host/../common/src/log.cpp:148][TsdClient] enter into open process logicDeId[0] rankSize[0],[tdt/host/src/tsd/tsd_client.cpp:785:Open]4576[EVENT] TDT(4576,main):2020-12-26-07:22:00.364.847 [tdt/host/../common/src/log.cpp:148][TsdClient] logicDeviceId=0 enter into Openp and computer process,[tdt/host/src/tsd/tsd_client.cpp:521:TsdClientInit]4576[EVENT] TDT(4576,main):2020-12-26-07:22:00.365.094 [tdt/host/../common/src/log.cpp:148][TsdClient][logicDeviceId_=0] [sessionId=1]kSize=0]wait hccp and computer process start respond,[tdt/host/src/tsd/tsd_client.cpp:820:Open]4576[EVENT] TDT(4576,main):2020-12-26-07:22:00.433.836 [tdt/host/../common/src/log.cpp:148][TsdClient][logicDeviceId_=0] [sessionId=1]rt hccp and computer process success,[tdt/host/src/tsd/tsd_client.cpp:844:Open]4576[EVENT] DRV(4576,main):2020-12-26-07:22:00.435.162 [hardware/npu_inc/../dev_core/devdrv/devdrv_fd.c:104][devdrv] [drvDeviceOpen 10dev/davinci3 open successfully.I1226 07:22:00.558969  4576 MpDataSerialize.cpp:51] enter MpDataSerialize initI1226 07:22:00.559053  4576 MpDataSerialize.cpp:59] result:mxpi_modelinfer0,mxpi_modelinfer1, outputDataKeys:mxpi_modelinfer0,mxpielinfer1E1226 07:22:00.559123  4576 DeviceManager.cpp:201] Failed to set one device for running: Invalid parameter.I1226 07:22:00.559186  4576 MpDataSerialize.cpp:65] enter MpDataSerialize DeInitE1226 07:22:00.559240  4576 MxsmStream.cpp:388] [6003][stream change state fail] Failed to set the state of the Stream, named: deton.E1226 07:22:00.559257  4576 MxStreamManager.cpp:83] [6003][stream change state fail] create stream(detection) failed.E1226 07:22:00.559298  4576 MxsmStream.cpp:412] Failed to flush the Stream data.I1226 07:22:00.559432  4576 MxsmStream.cpp:445] Destroys the stream(detection) successfully.Failed to create Stream, ret = 6003.[EVENT] IDEDH(4576,main):2020-12-26-07:22:00.564.779 [toolchain/ide/ide-daemon/IDE-daemon-host/libs/../../hdc-common/component/adxver_manager.cpp:27][tid:4576]>>> start to deconstruct adx server manager
  • .NET SDK 什么时候可以支持.NET Standard 2.1
    目前开发使用的是.NET Standard 2.1 这个版本SDK什么时候可以支持
  • [其他问题] ideahub 安装安卓应用(android TV sdk8)后,无法打开
    ideahub 安装安卓应用(android TV sdk8)后,无法打开
  • [资料专区] 【全款型】【ESDK】设备IP地址查询、增加、删除接口说明
    1查询设备接口IP地址信息1.1请求消息查询设备所有接口IP地址信息:APP发布/eSDK订阅主题{app}/get/request/esdk/ipAddr请求消息体无查询设备指定接口IP地址信息:APP发布/eSDK订阅主题{app}/get/request/esdk/ipAddr请求消息体{"dev": ["FE0", "FE1"]}示例:查询设备所有接口IP地址信息:主题app1/get/request/esdk/ipAddrMQTT消息{"token": "12345","timestamp": "2020-09-03T08:33:43Z"}查询设备指定接口IP地址信息:主题app1/get/request/esdk/ipAddrMQTT消息{"token": "12345","timestamp": "2020-09-03T08:33:43Z","body": {"dev": ["FE0", "FE1"]}}1.2响应消息查询设备所有接口IP地址信息:eSDK发布/APP订阅主题esdk/get/response/{app}/ipAddr正常响应消息体[{"dev": "lo","ip": "127.0.0.1","prefixLength": 8,"ifIndex": 1,"family": "inet"}, {"dev": "lo","ip": "::1","prefixLength": -128,"ifIndex": 1,"family": "inet6"}, {"dev": "br0","ip": "192.168.100.1","prefixLength": 24,"ifIndex": 3,"family": "inet"}, {"dev": "br0","ip": "fe80::d43d:9fff:fec4:6be2","prefixLength": 64,"ifIndex": 3,"family": "inet6"}, {"dev": "br0","ip": "fc01::fc30:74ff:fe05:b94b","prefixLength": 64,"ifIndex": 3,"family": "inet6"}, {"dev": "","ip": "fe80::fc30:74ff:fe05:b94b","prefixLength": 64,"ifIndex": 5,"family": "inet6"}, {"dev": "FE0","ip": "192.168.240.217","prefixLength": 16,"ifIndex": 1000,"family": "inet"}, {"dev": "FE1","ip": "192.168.2.1","prefixLength": 24,"ifIndex": 1001,"family": "inet"}]查询设备指定接口IP地址信息:eSDK发布/APP订阅主题esdk/get/response/{app}/ipAddr正常响应消息体[{"dev": "FE0","ip": "192.168.240.217","prefixLength": 16,"ifIndex": 1000,"family": "inet"}]2.配置设备指定接口IP地址2.1请求消息配置指定接口IP地址APP发布/eSDK订阅主题{app}/set/request/esdk/ipAddr请求消息体{"operation": "add/delete","addr": [{"dev": "FE1","ip": "192.168.129.129","prefixLength": 16,"family": "inet"}, {"dev": "FE0","ip": "192.168.139.129","prefixLength": 16,"family": "inet"}]}示例:增加指定接口IP地址主题app1/set/request/esdk/ipAddrMQTT消息{"token": "12345","timestamp": "2018-03-28T08:33:43Z","body": {"operation": "add","addr": [{"dev": "FE1","ip": "10.1.1.1","prefixLength": 16,"family": "inet"}, {"dev": "FE1","ip": "10.2.2.2","prefixLength": 16,"family": "inet"}]}}删除指定接口IP地址主题app1/set/request/esdk/ipAddrMQTT消息{"token": "12345","timestamp": "2018-03-28T08:33:43Z","body": {"operation": "delete","addr": [{"dev": "FE1","ip": "10.1.1.1","prefixLength": 16,"family": "inet"}, {"dev": "FE1","ip": "10.2.2.2","prefixLength": 16,"family": "inet"}]}}2.2响应消息eSDK发布/APP订阅主题esdk/set/response/{app}/ipAddr正常响应消息体无示例:主题app1/set/response/esdk/ipAddrMQTT消息{"token": "12345","timestamp": "2020-09-03T04:57:24Z","statusCode": 200,"statusDesc": "OK"}
  • [问题求助] 【HiLensKits产品】【SDK功能】新版本(1.2.0)的sdk什么时候发布?或者能将固件降级到旧版本(1.1.0)吗?
    新发布的sdk只到1.1.0,设备的固件已经升级到1.2.0;在管理平台上无法降级旧版本固件,请问怎么解决?