简体   繁体   English

在ac#项目中使用OpenCV的C ++项目参考(Windows Universal)vs2015

[英]reference c++ project using OpenCV in a c# project (windows universal) vs2015

I have a C# Project (universal windows) referencing a c++ Project (universal windows). 我有一个C#项目(通用窗口)引用了一个c ++项目(通用窗口)。 In the c++ project I have logic to recognition using openCV library. 在c ++项目中,我有使用openCV库进行识别的逻辑。 The compilation is ok and I add the using to namespace of c++ in the c# class, and I create a object with c++ class, and the build is ok but when I run the app it's crashed. 编译正常,我在c#类的c ++命名空间中添加了using,并使用c ++类创建了一个对象,构建正常,但是当我运行应用程序时,它崩溃了。

屏幕截图

An exception of type 'System.IO.FileNotFoundException' occurred in AdMobilizeNetTest.exe but was not handled in user code AdMobilizeNetTest.exe中发生了类型为'System.IO.FileNotFoundException'的异常,但未在用户代码中处理

Additional information: The specified module could not be found. 附加信息:找不到指定的模块。 (Exception from HRESULT: 0x8007007E) (来自HRESULT的异常:0x8007007E)

I set Project configuration to use openCV 我将项目配置设置为使用openCV

屏幕截图

Now there are nuget packages available for all the opencv libraries and it's pretty straightforward to use them in a C++ UWP app or in c++ runtime component. 现在有适用于所有opencv库的nuget程序包,在C ++ UWP应用程序或c ++运行时组件中使用它们非常简单。 They are still in pre-release though, So make sure to check the 'include pre-release' option. 它们仍然处于预发布状态,因此请确保选中“包括预发布”选项。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM