06-22-2019 04:28 AM
OpenVINO evolves rapidly, however, LabVIEW can not catch up with it.
I failed to call OpenVINO C++ API from LabVIEW directly, Since I don't know to how handle the memory management from intelligent pointer of OpenVINO in LabVIEW.
Is anyone can help me to work out the method how to call OpenVINO directly from LabVIEW?
Thank you very much in advance!
Alex Zhagn
06-24-2019 04:52 AM
@AlexZhang wrote:
I failed to call OpenVINO C++ API from LabVIEW directly
An easiest way is to develop simple wrapper DLL which should have plain C interface and where you will wrap the calls in a C-interface from C++ API provided by Intel. This is usual way to call C++ libraries from LabVIEW.
07-08-2019 11:38 PM
Hi, Andrey:
Thank you@Andrey_Dmitriev very much for your suggestion!~
I did the 1st step to develop a simple wrapper dll as you said, that is to encapsulate the class into struct.
However, it failed.
The attachment is the Visual studio project to make the wrapper, Would you please help me to fix the problem?
Before build the project, you should install the OpenVINO firstly.
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_windows.html
Then create 2 environment variable:
1,INF_DIR = "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\inference_engine"
2,OPENCV_DIR = "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\opencv"
Thank you very much again!~
Alex