This Python script visualizes LiDAR point cloud data stored in binary (.bin) format. It provides both 3D and 2D projections for better analysis.
-
3D Visualization: Displays LiDAR point cloud in a 3D scatter plot.
-
2D Projections:
-
Top-down view (XY plane)
-
Side view from X-axis (XZ plane)
-
Front view from Y-axis (YZ plane)
-
-
Color mapping based on Z-values or intensity (if available).
$ pip install -r requirements.txt
Run the script with the .bin file and specify the desired visualization type:
$ python3 script.py {bin_file} {axis}
-
{bin_file}: Path to the binary LiDAR point cloud file.
-
{axis}: Choose visualization type:
-
3d → 3D visualization
-
xy → Top-down view
-
xz → Side view from X-axis
-
yz → Front view from Y-axis
-
-
$ python3 script.py samles/000002.bin 3d # 3D visualization
$ python3 script.py samles/000002.bin xy # Top-down view
$ python3 script.py samles/000002.bin xz # Side view
$ python3 script.py samles/000002.bin yz # Front view
The script assumes the binary file contains float values in the order: x, y, z, intensity.
If intensity is not available, Z-values are used for coloring.
Ensure the .bin file follows the correct format before visualization.



