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.
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.
: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.
pip install -r requirements.txt
python main.pyThen open your browser to http://localhost:8012
