惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Java不加糖的Blog

wireguard折腾记录 DSB in SBG ODE常微分方程总结 Windows分应用跳过管理员弹窗 docker配置wikijs 使用socket代理解决企业微信可信ip问题 PowerShell美化 Kaggle比赛RSNA-2022骨折检测 Pandas的数据操作 齐次坐标系的理解 NgeNet论文理解 2023年必装的Windows软件
CloudComPy库安装
2022-08-30 · via Java不加糖的Blog

下载链接:https://www.simulation.openfields.fr/index.php/download-binaries

官方教程:https://github.com/CloudCompare/CloudComPy/blob/master/doc/UseLinuxCondaBinary.md

Installing, testing and using a CloudComPy binary on Linux, with conda

🚫 建议切换SHELL为bash 🚫 我在zsh上安装失败,切换bash成功

先下载 CloudComPy_Conda39_Linux64_-date-.tgz here

GLIBC版本需要2.29以上。

检查GLIBC版本:

1
ldd --version

必须先更新conda

1
conda update -y -n base -c defaults conda

新建一个conda环境

1
conda create --name CloudComPy39 python=3.9

安装需要的包

1
2
3
4
conda activate CloudComPy39
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install "boost=1.72" "cgal=5.0" cmake ffmpeg "gdal=3.3" jupyterlab "matplotlib=3.5" "mysql=8.0" "numpy=1.22" "opencv=4.5.3" "openmp=8.0" "pcl=1.11" "pdal=2.3" "psutil=5.9" "qhull=2019.1" "qt=5.12" "scipy=1.8" sphinx_rtd_theme spyder tbb tbb-devel "xerces-c=3.2"

如果遇到Solving environment: failed with initial frozen solve. Retrying with flexible solve. 可以尝试重新新建一个conda环境

如何使用:

不能用conda activate <env>需要使用 CloudComPy39/bin/condaCloud.sh 替代

<path install>替换成你的CloudComPy39的目录

1
. <path install>/bin/condaCloud.sh activate CloudComPy39

Remark: 可能需要安装 libomp.so.5:

1
2
sudo apt-get install libomp5

测试所有项目(大约需要2分钟):

1
2
3
. <path install>/bin/condaCloud.sh activate CloudComPy39
cd <path install>/doc/PythonAPI_test
ctest

测试会输出到这里: ${HOME}/CloudComPy/Data

在vscode上编辑

如果直接打开在vscode的话就无法import cloudComPy

正确的做法是

1
2
. <path install>/bin/condaCloud.sh activate CloudComPy39
code -g <folder to edit>

官方文档

https://www.simulation.openfields.fr/documentation/CloudComPy/html/index.html

一些小细节

和open3d不太一样,读取点云数据有两种选择

  1. 需要去修改点云的位置时用toNpArray()

  2. 复制出点云的点时用toNpArrayCopy()

给CloudComPy点云上色

当前版本(2.12)好像存在一些问题,建议转成open3d的数据类型后再添加颜色🤨