Coder Social home page Coder Social logo

xmba15 / automatic_lidar_camera_calibration Goto Github PK

View Code? Open in Web Editor NEW
99.0 2.0 26.0 4.29 MB

auto-calibration of lidar and camera based on maximization of intensity mutual information

CMake 11.97% Makefile 0.73% C++ 87.30%
livox-lidar lidar-camera-calibration lidar-camera-fusion mutual-information

automatic_lidar_camera_calibration's Introduction

License: MIT

πŸ“ Automatic Targetless Lidar Camera Calibration


Auto-calibration of lidar and camera based on maximization of intensity mutual information. This is the reimplementation of the paper: Automatic Targetless Extrinsic Calibration of a 3D Lidar and Camera by Maximizing Mutual Information

πŸŽ‰ TODO


πŸŽ› Dependencies


  • tested on Ubuntu 20.04
sudo apt-get install \
    libopencv-dev \
    libpcl-dev \
    rapidjson-dev \

πŸ”¨ How to Build


make default -j`nproc`

# build examples
make apps -j`nproc`

πŸƒ How to Run


  • Download livox lidar data together with images from here(If you are interested, you can search for more about low-cost livox lidars).
  • Extract the sample data, and create two files images.txt and point_clouds.txt that store absolute paths to image, pcd data file respectively. One line for one file.
  • Create camera info with camera instrinsic matrix, a sample is provided here
  • Create initial guess of transformation info from lidar to camera, in the form of translation(tx, ty, tz), rotation(roll, pitch, yaw); a sample is provided here
  • Fill absolute paths to the above files in calibration_handler_param.json
  • Run (after make apps)
    ./build/examples/sensors_calib_app ./data/samples/calibration_handler_param.json

After the optimization finishes, the final transformation info will be printed out.

Also the projected (image to) pointclouds; (pointcloud to) images will be saved. Check cloud*.pcd and img*.png files.

  • Here is the sample results:

projected cloud:

projected cloud

projected image:

projected image

πŸ’Ž References


automatic_lidar_camera_calibration's People

Contributors

xmba15 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  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

automatic_lidar_camera_calibration's Issues

Camera distortion parameters Problem

Thanks for your open-source project!
I have ran your sample data. It's wonderful!
But after I use my data, registration mistake happened, Like this:
image
It may be the result of different distortion parameters. However, I can't find the position to change distortion parameters.
SO, could you please tell me where can I change distortion parameters?
Or, is this project take camera distortion effect into consideration?

problem while running ./build/examples/sensors_calib_app

After filingl absolute paths to the files in calibration_handler_param.json,
I run the examples by " ./build/examples/sensors_calib_app ./data/samples/calibration_handler_param.json" ,
but the terminal says "number of images and point clouds must be the same".
The variable value is "imagePaths.size()= 10243 pointcloudPaths.size()= 32043" by printed in terminal.

absolute paths filled in calibration_handler_param.json is as follows:
"path_to_initial_guess": "/home/callmelxh/Code/automatic_lidar_camera_calibration-master/data/samples/initial_guess.json",
"path_to_images": "/home/callmelxh/Code/automatic_lidar_camera_calibration-master/data/samples/image.png",
"path_to_point_clouds": "/home/callmelxh/Code/automatic_lidar_camera_calibration-master/data/samples/pointcloud.pcd",
"path_to_camera_info": "/home/callmelxh/Code/automatic_lidar_camera_calibration-master/data/samples/camera_info.json",

Could you help me slove this problem ,Thanks.

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.