openvino環(huán)境搭建
openvino_tools visual studio 配置
本文引用地址:http://butianyuan.cn/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
最后運(yùn)行結(jié)果為成功
###############|| Demo completed successfully ||###############
C:Intelopenvino_2019.1.148deployment_toolsdemo>
配置開發(fā)環(huán)境2--->
1 創(chuàng)建新項(xiàng)目-> 空項(xiàng)目->項(xiàng)目名稱(openvino_test 將解決方案和項(xiàng)目放在同一目錄中)
2 解決方案資源管理器->openvino_test的源文件->右鍵(添加,新建項(xiàng))->(C++文件,名字main.cpp)
3 生成和調(diào)試下面選擇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
還需要一個(gè)CPU擴(kuò)展,具體做法如下
C:UsersAdministrator> cd C:Intelopenvino_2019.1.148deployment_toolsinference_enginesamples
C:Intelopenvino_2019.1.148deployment_toolsinference_enginesamples> build_samples_msvc.bat
會(huì)把build的結(jié)果放入到C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_build中
生成一個(gè)Samples.sln雙擊用Visual Studio 打開
之后再解決方案資源管理器中的(解決方案Samples 點(diǎn)擊右鍵->生成解決方案)
生成的文件C:UsersAdministratorDocumentsIntelOpenVINOinference_engine_samples_buildintel64Debug中
有個(gè)cpu_extension.lib非常重要(做了半天就是為了cpu_extension.lib這個(gè)文件)
5.3鏈接器->輸入->附加依賴項(xiàng)中添加
opencv_world410d.lib
opencv_pvl410d.lib
inference_engined.lib
cpu_extension.lib
format_reader.lib
6配置系統(tǒng)環(huán)境變量
我的電腦右鍵->高級(jí)系統(tǒng)設(shè)置->環(huán)境變量->系統(tǒng)變量->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重新啟動(dòng)Visual Studio2019
版權(quán)聲明:本文為CSDN博主「張金玉」的原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權(quán)協(xié)議,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/xsjzdrxsjzdr/java/article/details/92249610
想要查看更多OpenVINO相關(guān)技術(shù)與資料,請(qǐng)戳>> http://butianyuan.cn/openvino
評(píng)論