openvino环境搭建
openvino_tools visual studio 配置
本文引用地址://www.cazqn.com/article/202004/411930.htm安装1---> anaconda3
2--->Cmake
3--->visual studio
4--->openvino_toolkit软件安装完成之后
openvino_toolkit所有都安装在C:Intel目录下
python3.6.5/python3.7
VS2015/VS2017
(1)
C:UsersAdministrator>cd C:Intelopenvino_2019.1.148bin
C:Intelopenvino_2019.1.148bin> setupvars.bat
(2)
C:Intelopenvino_2019.1.148bin> cd C:Intelopenvino_2019.1.148deployment_toolsdemo
C:Intelopenvino_2019.1.148deployment_toolsdemo> demo_security_barrier_camera.bat
最后运行结果为成功
###############|| Demo completed successfully ||###############
C:Intelopenvino_2019.1.148deployment_toolsdemo>
配置开发环境2--->
1 创建新项目-> 空项目->项目名称(openvino_test 将解决方案和项目放在同一目录中)
2 解决方案资源管理器->openvino_test的源文件->右键(添加,新建项)->(C++文件,名字main.cpp)
3 生成和调试下面选择Debug和x64
4 视图->其它窗口->属性管理器(最右边openvino_test->Debug|x64 ->Microsoft.Cpp.x64.user->右键属性)
5 VC++目录->
5.1包含目录
C:Intelopenvino_2019.1.148deployment_toolsinference_enginesrcextension
C:Intelopenvino_2019.1.148deployment_toolsinference_enginesamplescommonformat_reader
C:Intelopenvino_2019.1.148deployment_toolsinference_engineinclude
C:Intelopenvino_2019.1.148opencvinclude
C:Intelopenvino_2019.1.148opencvincludeopencv2
5.2库目录
C:Intelopenvino_2019.1.148opencvlib
C:Intelopenvino_2019.1.148deployment_toolsinference_enginelibintel64Debug
C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_buildintel64Debug
还需要一个CPU扩展,具体做法如下
C:UsersAdministrator> cd C:Intelopenvino_2019.1.148deployment_toolsinference_enginesamples
C:Intelopenvino_2019.1.148deployment_toolsinference_enginesamples> build_samples_msvc.bat
会把build的结果放入到C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_build中
生成一个Samples.sln双击用Visual Studio 打开
之后再解决方案资源管理器中的(解决方案Samples 点击右键->生成解决方案)
生成的文件C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_buildintel64Debug中
有个cpu_extension.lib非常重要(做了半天就是为了cpu_extension.lib这个文件)
5.3链接器->输入->附加依赖项中添加
opencv_world410d.lib
opencv_pvl410d.lib
inference_engined.lib
cpu_extension.lib
format_reader.lib
6配置系统环境变量
我的电脑右键->高级系统设置->环境变量->系统变量->PATH
C:Intelopenvinoopencvbin
C:Intelopenvino_2019.1.148deployment_toolsinference_enginebinintel64Debug
C:Intelopenvino_2019.1.148deployment_toolsinference_enginebinintel64Release
C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_buildintel64Debug
C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_buildintel64Release
7重新启动Visual Studio2019
版权声明:本文为CSDN博主「张金玉」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xsjzdrxsjzdr/java/article/details/92249610
想要查看更多OpenVINO相关技术与资料,请戳>> //www.cazqn.com/openvino
评论