width
是Open3D中open3d.io.AzureKinectMKVMetadata
类的一个属性,代表Azure Kinect的彩色和深度帧的宽度(以像素为单位)。
width
为整数。
以下示例演示如何使用width
属性:
import open3d as o3d
# 读取Azure Kinect MKV文件
mkv = o3d.io.AzureKinectMKVReader()
mkv.open("example.mkv")
# 获取帧率
metadata = mkv.metadata
color_width = metadata.color.width
depth_width = metadata.depth.width
print(f"Color frame width: {color_width}")
print(f"Depth frame width: {depth_width}")
上述示例将打印彩色和深度帧宽度。
width
属性仅适用于Azure Kinect设备的MKV文件。