首页 > 解决方案 > VideoDeviceController:曝光控制与曝光。哪个更好?

问题描述

VideoDeviceController 类的可用属性的信息可以在这里找到:https ://docs.microsoft.com/en-us/uwp/api/windows.media.devices.videodevicecontroller

我对 VideoDeviceController 类中 ExposureControl 和 Exposure 之间的区别感到困惑。它们看起来非常相似。为什么微软会同时提供这两者?两者之间有优点吗?

“获取此视频设备的曝光控制”,如下所示:

private MediaCapture _mediaCapture;
var exposureControl = _mediaCapture.VideoDeviceController.ExposureControl;

exposureControl.Auto
exposureControl.Min
exposureControl.Max
exposureControl.Supported

来源:https ://docs.microsoft.com/en-us/uwp/api/windows.media.devices.exposurecontrol

“获取一个 MediaDeviceControl 对象,该对象可用于获取或设置相机的曝光时间”,如下所示:

private MediaCapture _mediaCapture;
var otherExposureControl = _mediaCapture.VideoDeviceController.Exposure;

otherExposureControl.capabilities.auto;
otherExposureControl.capabilities.min;
otherExposureControl.capabilities.max;
otherExposureControl.capabilities.supported;

资料来源:https ://docs.microsoft.com/en-us/uwp/api/windows.media.devices.mediadevicecontrol

https://docs.microsoft.com/en-us/uwp/api/windows.media.devices.mediadevicecontrolcapabilities

标签: c#uwpwindows-10-universal

解决方案


ExposureControl 让应用程序可以额外控制设备上的曝光设置。

这是给你答案的那一行,它写在Exore Control docs -> 备注中。阅读该内容,您将看到ExporeControl如何成为更好的方法。此外, exposureControl处理捕获设备,它可以是任何附加到您的 Windows 10 设备的捕获设备,而曝光仅根据每个文档的第一行处理设备的内置摄像头。希望这可以帮助。


推荐阅读