How should you complete the code?

DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will be used on desktop computers and phones. The app will use facial recognition.
You need to develop a method that verifies whether a camera is present.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets. Each element may be used once, more than once, or not
at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will be used on desktop computers and phones. The app will use facial recognition.
You need to develop a method that verifies whether a camera is present.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets. Each element may be used once, more than once, or not
at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Answer:

Explanation:
Capture photos and video with MediaCapture.
To get available devices for capturing pictures you can use the following code:
var allVideoDevices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture);

https://msdn.microsoft.com/en-us/library/windows/apps/mt243896.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *