【python】使用open3d查看立体图像

本文介绍了如何在Python环境中安装open3d库,解决安装时的依赖问题,并详细阐述了如何在Jupyter notebook中使用open3d进行3D文件的显示、混合搜索、法向量估计、点云数据生成Mesh以及从三角片面生成等操作。
摘要由CSDN通过智能技术生成

一、下载open3d

在终端里直接pip install -i https://pypi.tuna.tsinghua.edu.cn/simple open3d

可能会显示错误:

ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately

这个时候 在代码后面加上 --ignore-installed PyYAML即可

二、在jupyter中导入open3d并进行操作 

现在jupyter中再次pip open3d

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple open3d --ignore-installed PyYAML

1. 显示3d文件 

import open3d as o3d
import numpy as np

print("Open3D read Point Cloud")
pcd=o3d.io.read_point_cloud("/Users/liruiying/Documents/pythonclass2021/open3d/bunny10k.ply")
print(pcd)

o3d.vis
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值