[UWP] OpenCV在UWP中加载视频 [英] [UWP]OpenCV loading video contens in UWP

查看:106
本文介绍了[UWP] OpenCV在UWP中加载视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我从GitHub下载了示例项目https://github.com/Microsoft/opencv/tree/vs2015-samples

I've downloaded the sample project from GitHub https://github.com/Microsoft/opencv/tree/vs2015-samples

这个项目是UWP的OpenCV项目。

This project is OpenCV project for UWP.

我成功为x86制作了UWP项目,并且样本源项目也成功加载并运行良好。

I successfully produced UWP project for x86, and also the sample source project successfully loaded and worked well.

示例源的路径是OpenCV分支中的opencv\samples\winrt_universal\highgui_xaml。

The sample source's path is opencv\samples\winrt_universal\highgui_xaml in OpenCV branch.

我很好奇这个用于UWP库的OpenCV可以使用实时摄像头加载内部视频内容。

I'm curious that this OpenCV for UWP library can load on premise video contents, using live cam instead.

我试图在UWP中使用各种方式加载内部视频内容,但都失败了。

I've tried to use various ways in UWP to load on premise video contents, but all failed.

ex:(cam.open(" Assets / video.mp4");    ... etc

ex : (cam.open("Assets/video.mp4" );    ...etc

有人试过这种方式吗?

提前致谢。

推荐答案

Hello Noir Ryu,

Hello Noir Ryu,

欢迎
到开发通用Windows应用论坛!

请阅读粘贴帖子,特别是

发布指南:主题行标签

Windows 10 SDK和工具的已知问题 
 请记住下次将标签添加到标题。

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools  and please remember to add tag to title next time.

在UWP中,如果要访问存储在应用程序包中的文件,则需要使用" ms-appx:///"scheme:

In UWP, if you want to access files stored inside the application package, you would need to use "ms-appx:///" scheme:

cam.open("ms-appx:///Assets/video.mp4");

您可以参考  如何加载文件资源(XAML) 了解更多详情。

You could refer to How to load file resources (XAML) for more details.

最好的问候,

Xavier Eoro

Xavier Eoro


这篇关于[UWP] OpenCV在UWP中加载视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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