c# - 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
解决方案
ExposureControl 让应用程序可以额外控制设备上的曝光设置。
这是给你答案的那一行,它写在Exore Control docs -> 备注中。阅读该内容,您将看到ExporeControl如何成为更好的方法。此外, exposureControl处理捕获设备,它可以是任何附加到您的 Windows 10 设备的捕获设备,而曝光仅根据每个文档的第一行处理设备的内置摄像头。希望这可以帮助。
推荐阅读
- java - Spring批量检查运行Job Instance
- c - C中的变量声明和范围
- ios - Xamarin Forms CollectionView 抛出 NSInternalInconsistencyException
- css - 鼠标悬停在 SVG (Inkscape)
- wordpress - 强制 SSL 后访问 wp-admin 时出现问题
- mysql - MySQL 将来自两个单独且复杂的查询的列组合成一行
- php - 注意:未定义的偏移量:PHP 数组中的 1
- c# - C# Globalization 的 GetCultureTableRecord 上的对象引用异常
- python - Folium TimestampedGeoJson 地图中的弹出问题
- javascript - 如何用相同的功能填充两个输入以及如何添加最大值?