guojin-yan / OpenVINO-CSharp-API

OpenVINO wrapper for .NET.
Apache License 2.0
146 stars 38 forks source link

Unable to load DLL #2

Closed tungnt90 closed 11 months ago

tungnt90 commented 1 year ago

Thank for great project. Im getting this error when trying to run demo. I already follow your instruction and build successed without any error. But when i run text_demo i received this error. Can you please advice ? Thank you in advance!

error

tungnt90 commented 1 year ago

Update: If i copy extra depency openvino.dll, opencv_world455.dll, tbb.dll as bellow: error

Then i got this error: error2

guojin-yan commented 1 year ago

Hello, thank you for your attention to the project. Due to my limited technology, it is not very friendly to use. For the first problem you raised, I think you have solved it. The project relies on OpenCV and OpenVINO, two open source libraries. Therefore, you should configure it according to the requirements, ensure that OpenCV and OpenVINO can be used in C++, and configure the same settings into the cppopenvinoapi C++project. For your second problem, I can't directly determine the reason at present. It seems to be the problem of calling dll. You can check the calling dD file

tungnt90 commented 1 year ago

Thank for your patience. May the issue on my openvino installed. Do you need copy "openvino.dll, opencv_world455.dll, tbb.dll" in same exe folder of "text_demo" to run it? Or run the project in setupvars.bat enviroment of openvino. Again thank you so much for your patience!

guojin-yan commented 1 year ago

https://blog.csdn.net/grape_yan/article/details/126943858?spm=1001.2014.3001.5501 You can refer to my sharing for OpenVINO installation. I only installed OpenVINO Runtime for C++use. You can refer to the first three sections of this blog. You need to set environment variables. If you want to check whether OpenVINO is installed successfully, you can write a simple C++project and test it.

tungnt90 commented 1 year ago

My issue was in environment path windows. Would be great if you can deployment the nuget package for this project. So many like it. There not openvino .NET wrapper for now. Thank you again.

guojin-yan commented 1 year ago

Thank you for reminding me. I will take the time to make NUGET as soon as possible. Thank you for your love.