Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 用open3d可视化点云_Python_Point Clouds_Open3d - Fatal编程技术网

Python 用open3d可视化点云

Python 用open3d可视化点云,python,point-clouds,open3d,Python,Point Clouds,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

我使用以下代码来可视化点云

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]
回溯(最近一次呼叫最后一次):
文件“/home/app/pointcloud.py”,第5行,在
o3d.可视化.绘制几何体([pcd],注视=[2.6172,2.0475,-0.4])
TypeError:draw_Geometrics():函数参数不兼容。支持以下参数类型:
1.(几何体列表:列表[open3d.open3d\u pybind.geometry.geometry],窗口名称:str='open3d',宽度:int=1920,高度:int=1080,左:int=50,顶部:int=50,点显示\u法线:bool=False,网格显示\u线框:bool=False,网格显示\u背面\u面:bool=False)->无
调用时使用:[几何体::点云和677248个点];kwargs:lookat=[2.6172,2.0475,-0.4]

我遗漏了什么吗?

draw\u Geometrics函数中没有
lookat
参数。您可以不使用该参数直接可视化


错误的深层原因是open3D版本不匹配。对于最新版本,某些参数和功能已被修改。

那么,是否无法更改相机的起始位置?这对我来说太疯狂了,因为它刚刚掉了