【问题标题】:VideoDeviceController: ExposureControl vs. Exposure. Which is better?VideoDeviceController:曝光控制与曝光。哪个更好?
【发布时间】:2019-01-17 11:53:26
【问题描述】:

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# uwp windows-10-universal


    【解决方案1】:

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

    这是给你答案的那行,它写在 Expore Control 文档 -> 备注中。阅读它,您将看到 ExporeControl 是如何做到这一点的更好方法。 exposureControl 还处理 capturing device,它可以是任何附加到您的 windows 10 设备的捕捉设备,而 exposure 只处理设备的内置摄像头根据每个文档的第一行。希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-06
      • 1970-01-01
      • 1970-01-01
      • 2021-05-17
      • 2014-09-24
      • 1970-01-01
      相关资源
      最近更新 更多