Open3D 计算点云边界框的宽高

    # 计算点云的边界框
    aabb = pcd.get_axis_aligned_bounding_box()

    # 获取边界框的尺寸
    width = aabb.max_bound[0] - aabb.min_bound[0]
    height = aabb.max_bound[1] - aabb.min_bound[1]

    # 打印点云的宽高
    print("Width:", width)
    print("Height:", height)

你可能感兴趣的:(机器视觉,#,Open3D,python,open3d)