Coder Social home page Coder Social logo

heisenberg141 / pointcloud-segmentation Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 121.09 MB

This repository contains sensor fusion between a lidar and camera, semantic segmentation on point clouds and ICP registration of multiple point clouds.

Python 100.00%
camera-calibration extrinsic-calibration point-cloud python 3d-perception autonomous-driving computer-vision deep-learning perception pointcloud-registration sensor-fusion transformer-architecture

pointcloud-segmentation's Introduction

Pointcloud-Segmentation

registration

Overview

In this project, I used Kitti360 dataset to give pointcloud semantic labels using segmentation obtained from a camera image of the scene. I used an implementation of segformer to generate semantic labels on the image. After applying semantic labels on multiple pointclouds, I used ICP registration to generate the mapping of the complete scene.

This repository does the following tasks.

  1. Intrinsic calibration of perspective camera (Point Gray Flea 2).
  2. Extrinsic calibration of the perspective camera with a Velodyne Lidar (HDL-64E).
  3. Projecting lidar points on to the image plane (run python src/utils.py).
  4. Generating a colored pointcloud (run python src/gen_color_pcd.py).
  5. Applying semantic labels on the pointcloud and registering multiple pointclouds using ICP based registration(run python src/pointcloud_segmentation.py).

Dependencies

Refer to this page to install openMMlab's segmentation repository. Download and paste the desired model in the config folder. Change the segment_image.py file accordingly. Install OpenCV on python.

Run instructions

  1. To run the complete pipeline with segmentation and ICP registration:
python src/pointcloud_segmentation.py 
  1. To generate colored pointcloud:
python src/gen_color_pcd.py 
  1. To project lidar points onto the image:
python src/utils.py 

Results

Original Pointcloud Figure 1: Original Pointcloud

Poincloud Projection on Image Plane Figure 2: Poincloud Projection on Image Plane

Colored Pointcloud Figure 3: Colored Pointcloud

Segmented Pointcloud Figure 4: Segmented Pointcloud

registration

Figure 5: ICP Registration demo

pointcloud-segmentation's People

Contributors

heisenberg141 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lidarsensorman

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.