Skip to content

vuer-ai/vuer-example-02_pointcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Showing Point Clouds Programmatically and Fast💨

This example shows you two ways to load a point cloud. In the first example, you serve the point cloud as an ply file, and have the webclient read directly from your file system. This approach, however can be a bit slow, and won't work with point cloud data that are updated at real time. In the second example, you load the point cloud into python and then send the parsed vertices and the color information via the PointCloud component.

We apply a few tricks to make the point cloud transmit faster. See the Why is it so much faster? section for more details.

Demo

The second point cloud should load significantly faster than the first one, due to its smaller size. We use half-precision for the vertices, and Uint8 for the colors. This cuts the overall size by half.

Why is it so much faster?

:class: tip
We accelerate point cloud view by using a custom, half-precision format for the vertices, and Uint8 for the colors. This cuts the overall size by half.

Alternative is to use compression algorithms designed specifically for geometric data (such as [Draco](https://google.github.io/draco/), or just simple LZ4 (or LZW). For depth images, LZW tend to work well due to near-by pixels being highly correlated.

Usage

pip install -r requirements.txt
python main.py

Then open your browser to http://localhost:8012

About

Vuer example: Working with point cloud data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages