IMPORTANT: CRG module compiled for Python 3.11 windows, linux and macos please follow pybind11 tutorial. cpp file is in CRG/extractC.
- download unet and dexiNed checkpoints and put it in the checkpoints folder
- specify if using Unet or Dexined using variable usingUnet in AirLine_demo.py, we recommand using dexiNed.
- specify sequencePath which should be a directory containing image sequence to test on.
- run Airline_demo.py in any way you want.
youtube demo video
*If you wish to run testing, download test set and set up the directory which should look like:
├──AirLine
├── checkpoints
│ ├── unet.pth
│ └── dexi.pth
├── datasets
│ ├── Wireframe
│ │ ├── gt
│ │ │ ├── xxxxx.jpg
│ │ │ └── xxxxx.jpg
│ │ └── data
│ │ ├── xxxxx.jpg
│ │ └── xxxxx.jpg
│ └── YorkUrban
│ ├── gt
│ │ ├── xxxxx.jpg
│ │ └── xxxxx.jpg
│ └── data
│ ├── xxxxx.jpg
│ └── xxxxx.jpg
...
after specifying variable dataset to be "Wireframe" or "YorkUrban" and then run AirLine-test.py.
Line detection is widely used in many robotic tasks such as scene recognition, 3D reconstruction, and simultaneous localization and mapping (SLAM). Compared to points, lines can provide both low-level and high-level geometrical information for downstream tasks. In this paper, we propose a novel edge-based line detection algorithm, AirLine, which can be applied to various tasks. In contrast to existing learnable endpoint-based methods which are sensitive to the geometrical condition of environments, AirLine can extract line segments directly from edges, resulting in a better generalization ability for unseen environments. Also to balance efficiency and accuracy, we introduce a region-grow algorithm and local edge voting scheme for line parameterization. To the best of our knowledge, AirLine is one of the first learnable edge-based line detection methods. Our extensive experiments show that it retains state-of-the-art-level precision yet with a
As shown above, AirLine is a learnable edge-based line detection architecture that is composed of four modules including edge detection, orientation detection, conditional region-grow, and line parameterization. We next present their motivation and detailed process, respectively. We made a video to demonstrate each stage.
By using edge-based learnable line detection approaches, AirLine has achieved state-of-art-level precision and significant efficiency and runtime boost.@inproceedings{lin2023airline,
title = {{AirLine}: Efficient Learnable Line Detection with Local Edge Voting},
author = {Lin, Xiao and Wang, Chen},
booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
year = {2023}
}
You may also download this paper.