Skip to content

Master thesis project realized in partnership with Aalto University and Finnish Geospatial Research Institute of Finland. Stereo Camera-LiDAR calibration. Covers: mono and stereo camera calibration, Camera-LIDAR synchronisation, camera-based and LiDAR-based 3D reconstruction, Camera-LiDAR extrinsic calibration, Occlusion handling.

License

Notifications You must be signed in to change notification settings

eugeniu1994/Stereo-Camera-LiDAR-calibration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mono,Stereo Camera-LiDAR Calibration README Awesome

A curated list of instructions

This is the Camera-LiDAR calibration master thesis project. Contains:

  • Mono and Stereo camera calibration
  • Camera-based 3D reconstruction
  • Camera-LiDAR extrinsic calibration
  • Camera-LiDAR occlusion handling
  • Sensors synchronisation and fusion

Use 3D car models

3D car models are available under /car_models_json folder.

Usage

import json
from mpl_toolkits.mplot3d import Axes3D
import glob
import matplotlib.pyplot as plt

#change the path here
files = glob.glob('/car_models_json/*leikesasi.json')
file = files[0]

plt.figure(figsize=(20, 10))
ax = plt.axes(projection='3d')

scale = 5
with open(file) as json_file:
     data = json.load(json_file)
     print(data.keys()) #  (['car_type', 'vertices', 'faces']
     vertices = np.array(data['vertices'])
     triangles = np.array(data['faces']) - 1
     print('vertices -> {},  triangles->{}'.format(np.shape(vertices), np.shape(triangles)))


     ax.set_xlim([-15, 15])
     ax.set_ylim([-15, 15])
     ax.set_zlim([-1, 15])
     ax.plot_trisurf(vertices[:, 0], vertices[:, 2], triangles[:], -vertices[:, 1], shade=True,
                        color='grey', alpha=.2)

plt.show()

Camera-LiDAR extrinsic calibration

  • Data collection, & pointcloud filtering using RANSAC, see cam_lidar_data.py
  • Extract point cloud correspondences - see Fit_Points.py script, collect 3D-2D and 3D-3D data points. Estimate transformation between LiDAR-image pixels and LiDAR-3d stereo points.
  • see synchronization.py for camera-Lidar synchronization and fusion

Mono and Stereo camera calibration & 3D reconstruction

  • Mono camera calibration using chessboard, see MonoChess.py, example how to run main.py Chess_MonoCalibration() function.

  • Mono camera calibration using ChAruco, see MonoCharuo.py, example how to run main.py Charuco_MonoCalibration() function.

  • Stereo camera calibration using chessboard, see StereoChess.py, example how to run main.py Chess_StereoCalibration() function.

  • Stereo camera calibration using ChAruco, see StereoChess.py, example how to run main.py Charuco_MonoCalibration() function.

  • 3D reconstruction using points collected with ChAruco + chessboard, see Charuco_Chess_combine.py script, example to run see combinedChess_and_Charuco() function in the main.py script

Original view

Sensor synchronised, calibrated, fused and occlusion removed

License

[CC0]

CONFIDENTIAL

 Copyright (c) 2021 Eugeniu Vezeteu,
 Department of Remote Sensing and Photogrammetry,
 Finnish Geospatial Research Institute (FGI), National Land Survey of Finland (NLS)
 PERMISSION IS HEREBY LIMITED TO FGI'S INTERNAL USE ONLY. THE CODE
 MAY BE RE-LICENSED, SHARED, OR TAKEN INTO OTHER USE ONLY WITH
 A WRITTEN CONSENT FROM THE HEAD OF THE DEPARTMENT.


 The software is provided "as is", without warranty of any kind, express or
 implied, including but not limited to the warranties of merchantability,
 fitness for a particular purpose and noninfringement. In no event shall the
 authors or copyright holders be liable for any claim, damages or other
 liability, whether in an action of contract, tort or otherwise, arising from,
 out of or in connection with the software or the use or other dealings in the
 software.

About

Master thesis project realized in partnership with Aalto University and Finnish Geospatial Research Institute of Finland. Stereo Camera-LiDAR calibration. Covers: mono and stereo camera calibration, Camera-LIDAR synchronisation, camera-based and LiDAR-based 3D reconstruction, Camera-LiDAR extrinsic calibration, Occlusion handling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages