处理多个摄像机捕获的UWP [英] Handle multiple camera capture UWP

查看:80
本文介绍了处理多个摄像机捕获的UWP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Universal应用程序,该应用程序使我们可以为每个摄像机(两个或更多)捕获图像。那么我们是否有任何方法来管理所有相机捕获的流沙过程呢?我刚刚在MSDN中找到了有关单个摄像机处理的教程。

I'm working with a Universal application that let we capture an image for each camera (two or more). So do we have any ways to manage all camera capture stream sand process it? I just found the tutorial about individual camera handling in MSDN.

我找到了一些有关在Winforms中管理多个IP摄像机的文章,但对于UWP却一无所获。

I found some article about manage multiple IP cameras in Winforms but nothing for UWP.

推荐答案

众所周知,对于UWP应用,捕获照片和视频的最简单方法是使用 MediaCapture 类。请参阅使用MediaCapture基本拍摄照片,视频和音频

As we know, for UWP app, the simplest way to capture photos and video is using the MediaCapture class. See Basic photo, video, and audio capture with MediaCapture.

在此官方示例中相机帧示例,它显示了如何列出所有捕获源和访问具有不同配置文件的相机。

In this official sample Camera frames sample, it shows how to list all capture source and access camera with different profile.


那么我们有什么办法来管理所有相机捕获流中的沙子
处理吗?

So do we have any ways to manage all camera capture stream sand process it?

我们可以初始化多个 MediaCapture 实例,并使用 MediaFrameReader 类读取框架。 查看此包装器以查看如何根据需要处理框架

We can initialize multiple MediaCapture instances and read frame by using MediaFrameReader Class. Check out this wrapper to see how to process frame as you need.

根据上述官方示例共享多相机示例:< a href = https://github.com/Myfreedom614/UWP-Samples/tree/master/MultipleCameraFrames rel = nofollow noreferrer> Github LINK

Share a multiple camera sample based on the above official sample: Github LINK

屏幕截图(在连接Microsoft Life Camera HD-3000的笔记本电脑上运行)

The screenshot(Running on my laptop which connected a Microsoft Life Camera HD-3000):

这篇关于处理多个摄像机捕获的UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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