当前位置:   article > 正文

OpenVino VS2019 C++部署的坑_openvino c++ 调用不成功

openvino c++ 调用不成功

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

~1:是因为dll的导入错了,安装的版本是Release的我一直按Debug调的,

版本在这里看

包含目录和库目录按网上一般教程设置就好,注意要添加附加依赖项

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版本重新配置:

依赖项:

  1. inference_engine.lib
  2. inference_engine_c_api.lib
  3. 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)


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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/161568
推荐阅读
相关标签
  

闽ICP备14008679号