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?
发布评论