openvino環(huán)境搭建
openvino_tools visual studio 配置
本文引用地址:http://m.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
最后運行結果為成功
###############|| Demo completed successfully ||###############
C:Intelopenvino_2019.1.148deployment_toolsdemo>
配置開發(fā)環(huán)境2--->
1 創(chuàng)建新項目-> 空項目->項目名稱(openvino_test 將解決方案和項目放在同一目錄中)
2 解決方案資源管理器->openvino_test的源文件->右鍵(添加,新建項)->(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
還需要一個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配置系統(tǒng)環(huán)境變量
我的電腦右鍵->高級系統(tǒng)設置->環(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重新啟動Visual Studio2019
版權聲明:本文為CSDN博主「張金玉」的原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權協(xié)議,轉(zhuǎn)載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/xsjzdrxsjzdr/java/article/details/92249610
想要查看更多OpenVINO相關技術與資料,請戳>> http://m.butianyuan.cn/openvino
評論