使用 open3d 可视化点云
Visualizing point cloud with open3d
我正在使用以下代码可视化点云。
import open3d as o3d
pcd = o3d.io.read_point_cloud("assets/pcd.ply")
o3d.visualization.draw_geometries([pcd],lookat=[2.6172, 2.0475, 1.532],)
不幸的是,我收到以下错误
Traceback (most recent call last):
File "/home/app/pointcloud.py", line 5, in <module>
o3d.visualization.draw_geometries([pcd],lookat=[2.6172, 2.0475, -0.4])
TypeError: draw_geometries(): incompatible function arguments. The following argument types are supported:
1. (geometry_list: List[open3d.open3d_pybind.geometry.Geometry], window_name: str = 'Open3D', width: int = 1920, height: int = 1080, left: int = 50, top: int = 50, point_show_normal: bool = False, mesh_show_wireframe: bool = False, mesh_show_back_face: bool = False) -> None
Invoked with: [geometry::PointCloud with 677248 points.]; kwargs: lookat=[2.6172, 2.0475, -0.4]
我是不是漏了什么?
draw_geometries 函数中没有 lookat
参数。您可以在没有该参数的情况下简单地进行可视化
更深层的错误原因是open3D版本不匹配导致的。最新版本修改了部分参数和功能
我正在使用以下代码可视化点云。
import open3d as o3d
pcd = o3d.io.read_point_cloud("assets/pcd.ply")
o3d.visualization.draw_geometries([pcd],lookat=[2.6172, 2.0475, 1.532],)
不幸的是,我收到以下错误
Traceback (most recent call last):
File "/home/app/pointcloud.py", line 5, in <module>
o3d.visualization.draw_geometries([pcd],lookat=[2.6172, 2.0475, -0.4])
TypeError: draw_geometries(): incompatible function arguments. The following argument types are supported:
1. (geometry_list: List[open3d.open3d_pybind.geometry.Geometry], window_name: str = 'Open3D', width: int = 1920, height: int = 1080, left: int = 50, top: int = 50, point_show_normal: bool = False, mesh_show_wireframe: bool = False, mesh_show_back_face: bool = False) -> None
Invoked with: [geometry::PointCloud with 677248 points.]; kwargs: lookat=[2.6172, 2.0475, -0.4]
我是不是漏了什么?
draw_geometries 函数中没有 lookat
参数。您可以在没有该参数的情况下简单地进行可视化
更深层的错误原因是open3D版本不匹配导致的。最新版本修改了部分参数和功能