Skip to content

cagcoach/point_labeler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

point cloud annotator (PCA)

Tool for labeling of single point clouds or a stream of point clouds.

Given the poses of a KITTI point cloud dataset, we load tiles of overlapping point clouds. Thus, multiple point clouds are labeled at once in a certain area.

Features

  • Support for KITTI Vision Benchmark Point Clouds.
  • Human-readable label description files in xml allow to define label names, ids, and colors.
  • Modern OpenGL shaders for rendering of even millions of points.
  • Tools for labeling of individual points, areas, and filling segments.
  • Filtering of labels makes it easy to label even complicated structures with ease.

Dependencies

  • catkin
  • Eigen >= 3.2
  • boost >= 1.54
  • QT >= 5.2
  • OpenGL >= 3.3
  • glow (catkin package)

Build

On Ubuntu 16.04, most of the dependencies can be installed from the package manager:

sudo apt install git libeigen3-dev libboost-all-dev qtbase5-dev libglew-dev catkin

Additionally, make sure you have catkin-tools and the fetch verb installed:

sudo apt install python-pip
sudo pip install catkin_tools catkin_tools_fetch empy

If you do not have a catkin workspace already, create one:

cd
mkdir catkin_ws
cd catkin_ws
mkdir src
catkin init
cd src
git clone https://github.com/ros/catkin.git

Clone the repository in your catkin workspace:

cd ~/catkin_ws/src
git clone https://github.com/jbehley/point_labeler.git

Download the additional dependencies:

catkin deps fetch

Then, build the project:

catkin build point_labeler

Now the project root directory (e.g. ~/catkin_ws/src/point_labeler) should contain a bin directory containing the labeler.

TODO: have more convinent setup.sh doing the whole stuff...

Usage

In the bin directory, just run ./labeler to start the labeling tool.

The labeling tool allows to label a sequence of point clouds in a tile-based fashion, i.e., the tool loads all scans overlapping with the current tile location. Thus, you will always label the part of the scans that overlaps with the current tile.

In the settings.cfg files you can change the followings options:

tile size: 50.0   # size of a tile (the smaller the less scans get loaded.
max scans: 500    # number of scans to load for a tile. (should be maybe 1000), but this currently very memory consuming.
min range: 2.5    # minimum distance of points to consider.
max range: 50.0   # maximum distance of points in the point cloud.

Folder structure

When loading a dataset, the data must be organized as follows:

point cloud folder
├── velodyne/             -- directory containing ".bin" files with Velodyne point clouds.   
├── labels/   [optional]  -- label directory, will be generated if not present.  
├── image_2/  [optional]  -- directory containing ".png" files from the color   camera.  
├── calib.txt [optional]  -- calibration of velodyne vs. camera. needed for projection of point cloud into camera.  
└── poses.txt             -- file containing the poses of every scan.

TODO

See TODO.md.

About

My awesome point cloud labeling tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published