I generated several point clouds in .bin files through velodyne and would like to view the various point clouds as a video or animation.
My files 000000.bin to 007480.bin are from a route with a LIDAR turned on until the end of the path and they are all in a directory called ../velodyne/ and I'm running a Deep learning model called OpenPCDet and it's time to run the demo.py with the following command:
python demo.py --cfg_file cfgs/kitti_models/pointrcnn.yaml --ckpt ../OpenPCDet/stev_models/pointrcnn_7870.pth --data_path ../OpenPCDet/data/ kitti/training/velodyne/ enter image description here the result I have is that it opens an image through the Open3D visualizer but I have to keep clicking Q (quit) or ESC to close the window and the code read the next image. My goal is to run demo.py and it will read all the .bin files at once and do the detection with OpenPCDet model treined.
https://github.com/open-mmlab/OpenPCDet/blob/master/tools/demo.py
I've already installed everything you need, now I have to run it as if it were a video already detecting the objects I trained...
You can modify the demo.py script to achive that. Mayavi is capable of saving the images as .png-s in a specific folders. Insert the following under the plot:
Since this is inserted in the loop of
for idx, data_dict in enumerate(demo_dataset)it is going to iterate over all the bin-s you have. After this, you can connect the exported images into a video with another script. Like this: https://stackoverflow.com/a/44948030/16495145Note, this works well if you are happy with the clouds to be "converted" to png-s.