文件如下:
openvino.lib
openvino_onnx_frontend.lib
openvino_pytorch_frontend.lib
到此为止就配置完成了
#include<openvino.hpp>
#include<opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main(int argc, char** argv) {
//创建IE插件,查询支持硬件设备
ov::Core core;
vector<string>availableDevices = core.get_available_devices();
for (int i = 0; i < availableDevices.size(); i++) {
printf("suported device name:%s\n", availableDevices[i].c_str());
std::cout << availableDevices[i] << std::endl;
}
}
显示
运行成功