OpenVino VS2019 C++部署的坑

1.生成失败,报错无法解析的外部符号

OpenVino VS2019 C++部署的坑_第1张图片~1:是因为dll的导入错了,安装的版本是Release的我一直按Debug调的,

版本在这里看

OpenVino VS2019 C++部署的坑_第2张图片

包含目录和库目录按网上一般教程设置就好,注意要添加附加依赖项OpenVino VS2019 C++部署的坑_第3张图片

inference_engine.lib
inference_engine_c_api.lib
inference_engine_legacy.lib
inference_engine_lp_transformations.lib
inference_engine_preproc.lib
inference_engine_transformations.lib
opencv_calib3d451.lib
opencv_core451.lib
opencv_dnn451.lib
opencv_features2d451.lib
opencv_flann451.lib
opencv_gapi451.lib
opencv_highgui451.lib
opencv_imgcodecs451.lib
opencv_imgproc451.lib
opencv_ml451.lib
opencv_objdetect451.lib
opencv_photo451.lib
opencv_stitching451.lib
opencv_video451.lib
opencv_videoio451.lib

2.自己转换的模型推理失败,但是官方下载的模型推理成功,

~2:推测可能是因为openVino版本低(2020.3)不支持新的模型结构,下载2021.4版本重新配置:

依赖项:

inference_engine.lib
inference_engine_c_api.lib
inference_engine_transformations.lib

include:

$(OPENCV_DIR)\include;$(OPENCV_DIR)\include\opencv2;$(IE_DIR)\include;$(IncludePath)

 lib:

$(OPENCV_DIR)\lib;$(IE_DIR)\lib\intel64\Release;$(LibraryPath)


OpenVino VS2019 C++部署的坑_第4张图片

读取模型就成功了,果然是版本问题 

你可能感兴趣的:(openvino,c++,人工智能)