UWP UVC摄像机焦点不支持

发布于 2025-02-06 18:28:49 字数 807 浏览 2 评论 0 原文

UWP UVC摄像机焦点

不支持下面的代码。

mediaCapture.VideoDeviceController.FocusControl.Configure(new FocusSettings { Mode = FocusMode.Auto });
await mediaCapture.VideoDeviceController.FocusControl.FocusAsync();

var focusControl = mediaCapture.VideoDeviceController.FocusControl;

if (focusControl.Supported) {
    messagetext.Text = "ok";
} else {
    messagetext.Text = "not";
}

上面的代码表明不支持它。 除了FocusControl,还有其他API吗? 当前平台是Windows 11,开发语言为C#。

- 我在这里测试了该示例,但不支持我的USB摄像机。

在OpenCvSharp中,相机焦点控制很容易。我该如何在UWP中执行此操作?

uwp uvc camera focus unsupported

The code below does not apply.

mediaCapture.VideoDeviceController.FocusControl.Configure(new FocusSettings { Mode = FocusMode.Auto });
await mediaCapture.VideoDeviceController.FocusControl.FocusAsync();

var focusControl = mediaCapture.VideoDeviceController.FocusControl;

if (focusControl.Supported) {
    messagetext.Text = "ok";
} else {
    messagetext.Text = "not";
}

The code above shows that it is not supported.
Are there any other APIs besides focusControl?
The current platform is Windows 11 and the development language is C#.

https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/CameraManualControls ->I tested the example here, but my USB camera was not supported.

Camera focus control is easy in opencvsharp. How do I do this in uwp?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文