Quick installation and use of Open3D Python version


Reference link: Open3d Learning Plan (1)
Python3.8.2 Installation Tutorial

1. What is Open3D

Open3D is an open source library that supports rapid development and processing of 3D data. Open3D exposes a carefully selected set of data structures and algorithms in C++ and Python. The backend is highly optimized and set up for parallelization.
Its core features include:
3D data structure
3D data processing algorithm
Scene reconstruction
Surface-aligned
3D visualization
Physically-based rendering (PBR)
C++ and python code interface
This blog mainly introduces the use of the python version of Open3D.

2. Quick installation and use of Python version

My installation environment is: WIN10+Python3.8.2+PyCharm 2019.3.3 x64
Install Open3D through pip
1. Open the installation path of Python3.8.2 to find the Scripts folder and open it.
insert image description here
2. In the following location in the Scripts folder, enter cmdand press the Enter key
insert image description here
3. Open the cmd window
insert image description here
4. Enter in the cmd window: pip install open3d
insert image description here
5. Depending on the network speed, the installation time is also different, and the installation will be successful after a short wait. When the installation is complete, test whether the installation was successful

python -c "import open3d as o3d"

If no error is reported, the installation is successful.
For the method of installing open3d through Anaconda, see: Quick installation and use of Open3D-0.13.0 python version

3. Test code

import open3d as o3d
import numpy as np
print("Load a ply point cloud, print it, and render it")
pcd = o3d.io.read_point_cloud("20期.pcd")
print(pcd)
print(np.asarray(pcd.points))
o3d.visualization.draw_geometries([pcd])

4. Results display

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_36686437/article/details/106529415