简体   繁体   中英

Brightness, Contrast, etc capabilities not supported under Windows 10 UWP MediaDeviceControl.Capabilities

I am trying to add Brightness, Contrast, etc support to a USB WebCam application I am creating for Windows 10 UWP in C#. I am using three different USB cameras including a Logitech LogiCam. What I'm discovering is Brightness, Contrast, even resolutions greater than 640x480 are not supported under Windows 10 UWP. However, when I examine those capabilities on Android OS they are fully supported.

Are there any overrides or some way to make Windows understand these capabilities are supported by the USB camera?

I've tried examining these capabilities using Android OS with the Saki UVC library and they work just fine.

private MediaCapture _mediaCapture;
private MediaDeviceControl _brightnessControl = null;
private MediaDeviceControlCapabilities _brightnessCapabilities = null;
// ...
_brightnessControl = _mediaCapture.VideoDeviceController.Brightness;
if (_brightnessControl != null)
    _brightnessCapabilities = _brightnessControl.Capabilities;

在此输入图像描述

It turns out this is hardware dependent. I ran this on a new-ish Lenovo laptop and a new-ish Dell laptop. It worked perfectly fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM