简体   繁体   English

python 中的 3D 点云

[英]3D point cloud in python

I am kind of new here:) Try to be concise, I am trying to pip install packages required for point cloud processing but I get these errors:我在这里有点新:) 尽量简洁,我正在尝试 pip 安装点云处理所需的软件包,但出现以下错误:

ERROR: Could not find a version that satisfies the requirement pclpy (from versions: none)  
ERROR: No matching distribution found for pclpy  
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.  
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Although I updated the pip I got the warning as well.虽然我更新了 pip 我也收到了警告。 Thanks谢谢

Hello and welcome to Stack Overflow!您好,欢迎来到 Stack Overflow!

As you can see in the pclpy official site, currently it does not work with Linux.正如您在pclpy官方网站上看到的,目前它不适用于 Linux。 Assuming you're using Linux, that explains the error you encountered.假设您使用的是 Linux,这就解释了您遇到的错误。

For point cloud processing library in Python, you might want to have a look at Open3D .对于 Python 中的点云处理库,您可能想看看Open3D To install it, you just have to type pip install open3d in your terminal.要安装它,您只需在终端中输入pip install open3d

To read point cloud data in and write it out, you can just use a few line of codes:要读入和写出点云数据,您只需使用几行代码:

import open3d as o3d

pcd = o3d.io.read_point_cloud('./input.pcd')
o3d.io.write_point_cloud('output.ply', pcd)

It's very easy to use and contains very good tutorial .它非常易于使用,并且包含非常好的教程 Hope it helps!希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM