作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经使用 RGB+深度视频生成了多个点云,并希望将多个点云可视化为视频或动画。
目前我正在使用Python,我的部分代码如下:
for i in range(1,10)
pcd = Track.create_pcd(i)
o3d.visualization.draw_geometries([pcd])
pcd_list.append(pcd)
当我使用 draw_geometries 或 draw_geometries_with_animation_callback 时,它们似乎无法显示点云列表:
o3d.visualization.draw_geometries([pcd_list])
或者
def rotate_view(vis):
ctr = vis.get_view_control()
ctr.rotate(10.0, 0.0)
return False
o3d.visualization.draw_geometries_with_animation_callback([pcd_list],rotate_view)
它给出了以下错误:
TypeError: draw_geometries(): incompatible function arguments. Thefollowing argument types are supported:
- (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
最佳答案
您可以使用 Open3D Non-blocking visualization .
会是这样
vis = o3d.visualization.Visualizer()
vis.create_window()
# geometry is the point cloud used in your animaiton
geometry = o3d.geometry.PointCloud()
vis.add_geometry(geometry)
for i in range(icp_iteration):
# now modify the points of your geometry
# you can use whatever method suits you best, this is just an example
geometry.points = pcd_list[i].points
vis.update_geometry(geometry)
vis.poll_events()
vis.update_renderer()
关于python - Open3d - 将多个点云可视化为视频/动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62912397/
出于好奇,我尝试了一些原型(prototype)制作,但似乎只允许在第一个位置使用子例程的原型(prototype) &。 当我写作时 sub test (&$$) { do_somethin
我需要开发一个类似于 Android Play 商店应用程序或类似 this app 的应用程序.我阅读了很多教程,发现几乎每个教程都有与 this one 类似的例子。 . 我已经开始使用我的应用程
考虑一个表示“事件之间的时间”的列: (5, 40, 3, 6, 0, 9, 0, 4, 5, 18, 2, 4, 3, 2) 我想将这些分组到 30 个桶中,但桶会重置。期望的结果: (0, 1,
我是一名优秀的程序员,十分优秀!