TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/LSDNet: Trainable Modification of LSD Algorithm for Real-T...

LSDNet: Trainable Modification of LSD Algorithm for Real-Time Line Segment Detection

Lev Teplyakov, Leonid Erlygin, Evgeny Shvets

2022-09-10Line DetectionLine Segment Detection
PaperPDFCode(official)

Abstract

As of today, the best accuracy in line segment detection (LSD) is achieved by algorithms based on convolutional neural networks - CNNs. Unfortunately, these methods utilize deep, heavy networks and are slower than traditional model-based detectors. In this paper we build an accurate yet fast CNN- based detector, LSDNet, by incorporating a lightweight CNN into a classical LSD detector. Specifically, we replace the first step of the original LSD algorithm - construction of line segments heatmap and tangent field from raw image gradients - with a lightweight CNN, which is able to calculate more complex and rich features. The second part of the LSD algorithm is used with only minor modifications. Compared with several modern line segment detectors on standard Wireframe dataset, the proposed LSDNet provides the highest speed (among CNN-based detectors) of 214 FPS with a competitive accuracy of 78 Fh . Although the best-reported accuracy is 83 Fh at 33 FPS, we speculate that the observed accuracy gap is caused by errors in annotations and the actual gap is significantly lower. We point out systematic inconsistencies in the annotations of popular line detection benchmarks - Wireframe and York Urban, carefully reannotate a subset of images and show that (i) existing detectors have improved quality on updated annotations without retraining, suggesting that new annotations correlate better with the notion of correct line segment detection; (ii) the gap between accuracies of our detector and others diminishes to negligible 0.2 Fh , with our method being the fastest.

Results

TaskDatasetMetricValueModel
Line Segment DetectionYork Urban DatasetFH64.6LSDNet
Line Segment Detectionwireframe datasetFH77.5LSDNet

Related Papers

Detection of Rail Line Track and Human Beings Near the Track to Avoid Accidents2025-07-03ScaleLSD: Scalable Deep Line Segment Detection Streamlined2025-06-11LINEA: Fast and Accurate Line Detection Using Scalable Transformers2025-05-22ClearLines - Camera Calibration from Straight Lines2025-05-01Persistence-based Hough Transform for Line Detection2025-04-18The Efficacy of Semantics-Preserving Transformations in Self-Supervised Learning for Medical Ultrasound2025-04-10Robust Detection of Extremely Thin Lines Using 0.2mm Piano Wire2025-03-04BST: Badminton Stroke-type Transformer for Skeleton-based Action Recognition in Racket Sports2025-02-28