Skip to content

sinaenjuni/Sensor_fusion_of_LiDAR_and_Camera_from_KITTI_dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensor fusion of LiDAR and Camera from KITTI dataset

Index

  1. Dataset
  2. Usage

Requirements

For building and running the application you need:

Installation

python 3.10
and
install using requirements.txt

Dataset

  1. Visit KITTI dataset website and login
  2. Download object tracking or any sequence dataset (Recommend Raw data tab)

Dataset tree

kitti_lidar_to_camera_calibration
├─ data
│  └─ kitti_sequence05
│     ├─ image_00
│     │  ├─ data
│     │  │  ├─ 0000000000.png
│     │  │  └─ ...
│     │  └─ timestamps.txt
│     ├─ image_01
│     │  ├─ data
│     │  │  ├─ 0000000000.png
│     │  │  └─ ...
│     │  └─ timestamps.txt
│     ├─ image_02
│     │  ├─ data
│     │  │  ├─ 0000000000.png
│     │  │  └─ ...
│     │  └─ timestamps.txt
│     ├─ image_03
│     │  ├─ data
│     │  │  ├─ 0000000000.png
│     │  │  └─ ...
│     │  └─ timestamps.txt
│     ├─ label_02
│     │  ├─ 0000.txt
│     │  └─ ...
│     ├─ oxts
│     │  ├─ data
│     │  │  ├─ 0000000000.txt
│     │  │  └─ ...
│     │  ├─ dataformat.txt
│     │  └─ timestamps.txt
│     └─ velodyne_points
│        ├─ data
│        │  ├─ 0000000000.bin
│        │  └─ ...
│        ├─ timestamps.txt
│        ├─ timestamps_end.txt
│        └─ timestamps_start.txt
├─ src
│  ├─ ...
│  └─ main.py
└─ ...

Usage

python3 main.py

Calibration file information

S_xx: 1x2 size of image xx before rectification
K_xx: 3x3 calibration matrix of camera xx before rectification
D_xx: 1x5 distortion vector of camera xx before rectification
R_xx: 3x3 rotation matrix of camera xx (extrinsic)
T_xx: 3x1 translation vector of camera xx (extrinsic)
S_rect_xx: 1x2 size of image xx after rectification
R_rect_xx: 3x3 rectifying rotation to make image planes co-planar
P_rect_xx: 3x4 projection matrix after rectification

$$ % Y = \text{P_rect_xx} * \text{R_rect_00} * (R|T)\text{_velo_to_cam} * X Y = P_\text{rect xx} * R_\text{rect 00} * (R|T)_\text{velo to cam} * X $$

About

Sensor fusion of LiDAR and Camera from KITTI dataset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages