[UWP] uwp opencv无法通过建设。 [英] [UWP]uwp opencv could not pass building.

查看:90
本文介绍了[UWP] uwp opencv无法通过建设。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将opencv项目作为页面。


https://blogs.msdn.microsoft.com/lucian/2015/11/27/opencv-building-uwp -binaries /


分支


解决方案

嗨  BillQu0002,


在使用
OpenCV
,请检查您设备的架构:x86(即您的机器或Minnowboard Max),ARM(即Raspberry Pi)和x64,然后在
中打开相应的解决方案 opencv 样本。在Visual Studio中打开解决方案后,您应该选择
发布而不是调试,然后在
之前将解决方案平台更改为您自己的设备架构构建在Visual Studio顶部的解决方案,在绿色的"运行"按钮旁边。


有关详细信息,请参阅:
https://developer.microsoft.com/en-us/windows/iot/samples/opencv
 并检查您的操作。


For例如,我的设备是x64,所以我在visual studio中打开 ... \vs2015 \ WS \10.0 \ x64 \ OpenCV.sln 并选择
发布 x64  以构建如下图像。我已经在VS2017和VS2015上进行了测试,它们都运行良好。





祝你好运,


Breeze


I get opencv project as the page.

https://blogs.msdn.microsoft.com/lucian/2015/11/27/opencv-building-uwp-binaries/

branch https://github.com/Microsoft/opencv/tree/vs2015-samples

But I could not pass building.

vs2015 tell me that could not open "opencvrt/cascadeclassifier.hpp" 

but the file is be in the folder.

How should I do?

解决方案

Hi BillQu0002,

Before you use the OpenCV, please check your device’s architecture: x86 (i.e. Your machine or Minnowboard Max), ARM (i.e. Raspberry Pi), and x64, then open the corresponding solution in the opencv sample. After you open the Solution in Visual studio, you should select Release instead of Debug and change Solution platform to your own device architecture before you build the solution on the Visual studio top of the screen, next to the green Run button.

For more details, you can refer to: https://developer.microsoft.com/en-us/windows/iot/samples/opencv and check your operation.

For example, my device is x64, so I open ...\vs2015\WS\10.0\x64\OpenCV.sln in visual studio and select Release and x64 to build as the following image. I have tested it on both VS2017 and VS2015, they all work well.


Best regards,

Breeze


这篇关于[UWP] uwp opencv无法通过建设。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆