Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handle multiple camera capture UWP

Tags:

c#

.net

camera

uwp

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.

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

like image 896
Bui Quang Huy Avatar asked Mar 29 '17 02:03

Bui Quang Huy


1 Answers

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?

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.

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

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

enter image description here

like image 167
Franklin Chen - MSFT Avatar answered Nov 16 '22 09:11

Franklin Chen - MSFT