Unity 网络摄像设备 - WebCamDevice

Unity 网络摄像设备 - WebCamDevice

WebCamKind-摄像头类型

  • 设备名称 name

一个可读的设备名称,不同的系统会有所不同

  • **相机方向 isFrontFacing **

如果摄像头面对屏幕的方向相同,则为True,否则为false。

  • 摄像头设备的类型 WebCamKind

WebCamKind类型的属性,表示摄像头设备的类型。

链接如下:
Unity 摄像头类型 - WebCamKind

  • **深度相机名称标识 depthCameraName **

一个字符串标识符,用于创建一个基于深度数据的WebCamTexture。

  • **自动聚焦 isAutoFocusPointSupported **

如果相机支持对感兴趣的点自动聚焦,则返回true
否则返回false。

  • 相机纹理分辨率 availableResolutions

可能的WebCamTexture分辨率这个设备

源代码

public struct WebCamDevice
{
    
    
    public string name {
    
     get; }
    public bool isFrontFacing {
    
     get; }
    public string depthCameraName {
    
     get; }
    public bool isAutoFocusPointSupported {
    
     get; }
    public Resolution[] availableResolutions {
    
     get; }
}

猜你喜欢

转载自blog.csdn.net/weixin_38531633/article/details/122856964