<jupyter_start><jupyter_text>Please first install these librariespip install pythreejs pyntcloud pandas numpy<jupyter_code>from pyntcloud import PyntCloud
import pandas as pd
import os
import numpy as np
import PIL.Image as Image
%matplotlib inline
def load_velo_scan(velo_filename):
    scan = np.fromfile(velo_filename, dtype=np.float32)
    scan = scan.reshape((-1, 4))
    return scan
def paint_points(points, color=[192,0,0]):
    # color = [r, g, b]
    color = np.array([color])
    new_pts = np.zeros([points.shape[0],6])
    new_pts[:,:3] = points
    new_pts[:, 3:] = new_pts[:, 3:] + color
    return new_pts
path = './000012.bin'
points = load_velo_scan(path)[:,:3]
pd_points = pd.DataFrame(paint_points(points), columns=['x','y','z','red','green','blue'])
cloud = PyntCloud(pd_points)
cloud.plot(initial_point_size=0.02)<jupyter_output>/Users/oldvim/anaconda3/lib/python3.7/site-packages/pythreejs/traits.py:191: UserWarning: 64-bit data types not supported for WebGL data, casting to 32-bit.
  warnings.warn('64-bit data types not supported for WebGL '<jupyter_text>The expected interface is shown bellow. If you cannot get it, please reopen your web browser.<jupyter_code>Image.open('./pyntcloud.png')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1348314606741573, 'fraction_numerical': 0.028892455858747994, 'mean_word_length': 5.528795811518324, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '633694', 'license': 'MIT', 'n_tokens_mistral': 461, 'n_tokens_neox': 441, 'n_words': 105, 'path': 'visualization/pyntcloud.ipynb', 'repo_name': 'daoran/pseudo_lidar', 'size': '1246'}