Giter VIP home page Giter VIP logo

kitti_viz_3d's Introduction

KITTI_VIZ_3D

Visualization 3D object detection results using meshlab.

This code is used for visualization by adding 3D bounding boxes to the LiDAR point cloud and storing it in a txt file.

Requrements

numba

opencv

matplotlib

pandas

python code

kitti_util.py

meshlab_file.py #using this to create meslab file, the detected *.txt using Camera coordinate

draw3Dbox2img.py

draw_voxel_circle.py

527_test_file_Lidar.txt is a test file

Some information need changed when you use this code.

img_id = 5147

calib = Calibration('/home1/yang_ye/data/Kitti/testing/calib/%06d.txt'%img_id)

path = '/home1/yang_ye/data/Kitti/testing/velodyne/%06d.bin'%img_id

path_img = '/home1/yang_ye/data/Kitti/testing/image_2/%06d.png'%img_id

points = np.fromfile(path, dtype=np.float32).reshape(-1, 4)

df = read_detection('/home2/yang_ye/results_kitti/%06d.txt'%img_id)
An example for '/home2/yang_ye/results_kitti/%06d.txt'%img_id
Car 0.0000 0.0000 1.3057 32.7170 174.0567 237.6250 296.2407 1.6493 1.7758 4.1813 -7.9406 1.6728 11.8281 0.7246 0.9034
Car 0.0000 0.0000 0.4979 153.2972 177.7395 352.8660 244.3964 1.5039 1.6312 4.0061 -8.5172 1.6277 17.3175 0.0466 0.7844
Car 0.0000 0.0000 1.1924 0.0000 180.3295 86.5943 254.3225 1.4746 1.6550 4.1006 -13.9844 1.6628 16.4232 0.4950 0.3663

how to use meshlab

meshlab

origin image

Ori

3D Visualization

3D

3D projected to image

3D_to_2D

Draw voxels and circles

voxels circles

kitti_viz_3d's People

Contributors

yeyang1021 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kitti_viz_3d's Issues

meshlab visualization question

I have used meshlab to open the generated TXT file, but no point cloud appears. Which one should I choose when I open it

MeshLab visualization problem

Hi Yeyang,

Could you please tell the format of the txt file? It's a n x 7 matrix and what every column represents? I imported the txt file to MeshLab but points can't be read and displayed.

Thanks

MeshLab visualization problem

QQ图片20210715104055
I imported the txt file to MeshLab but points can't be displayed.But it seems that the points have been readed.Could you please tell me why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.