Towards Light-Weight and Real-Time Line Segment Detection
Geonmo Gu, ByungSoo Ko, SeoungHyun Go, Sung-Hyun Lee, Jingeun Lee, Minchul Shin
Abstract
Previous deep learning-based line segment detection (LSD) suffers from the immense model size and high computational cost for line prediction. This constrains them from real-time inference on computationally restricted environments. In this paper, we propose a real-time and light-weight line segment detector for resource-constrained environments named Mobile LSD (M-LSD). We design an extremely efficient LSD architecture by minimizing the backbone network and removing the typical multi-module process for line prediction found in previous methods. To maintain competitive performance with a light-weight network, we present novel training schemes: Segments of Line segment (SoL) augmentation, matching and geometric loss. SoL augmentation splits a line segment into multiple subparts, which are used to provide auxiliary line data during the training process. Moreover, the matching and geometric loss allow a model to capture additional geometric cues. Compared with TP-LSD-Lite, previously the best real-time LSD method, our model (M-LSDtiny) achieves competitive performance with 2.5% of model size and an increase of 130.5% in inference speed on GPU. Furthermore, our model runs at 56.8 FPS and 48.6 FPS on the latest Android and iPhone mobile devices, respectively. To the best of our knowledge, this is the first real-time deep LSD available on mobile devices. Our code is available 1 .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 948aebe0-4eac-4b8d-a2f3-2e2de9bd9306Cited by top-tier papers10
- Adding Conditional Control to Text-to-Image Diffusion ModelsLvmin Zhang, Anyi Rao, Maneesh AgrawalaICCV 2023 · 6,759 citations
- Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion ModelsShihao Zhao, Dongdong Chen, Yen-Chun Chen, Jianmin Bao et al.NeurIPS 2023 · 505 citations
- When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following AbilityWenjie Xuan, Yufei Xu, Shanshan Zhao, Chaoyue Wang et al.ACM MM 2024 · 3 citations
- VisualCloze: A Universal Image Generation Framework via Visual in-Context LearningZhong-Yu Li, Ruoyi Du, Juncheng Yan, Le Zhuo et al.ICCV 2025 · 2 citations
- SceneLoom: Communicating Data with Scene ContextLin Gao, Leixian Shen, Yuheng Zhao, Jiexiang Lan et al.IEEE VIS 2025 · 1 citation
Builds on4
- End-to-End Wireframe ParsingYichao Zhou, Haozhi Qi, Yi MaICCV 2019 · 190 citations
- LGNN: A Context-aware Line Segment DetectorQuan Meng, Jiakai Zhang, Qiang Hu, Xuming He et al.ACM MM 2020 · 29 citations
- Line Segment Detection Using Transformers Without EdgesYifan Xu, Weijian Xu, David Cheung, Zhuowen TuCVPR 2021
- Holistically-Attracted Wireframe ParsingNan Xue, Tianfu Wu, Song Bai, Fudong Wang et al.CVPR 2020
Related papers
- ScaleLSD: Scalable Deep Line Segment Detection StreamlinedZeran Ke, Bin Tan, Xianwei Zheng, Yujun Shen et al.CVPR 2025
- DeepLSD: Line Segment Detection and Refinement with Deep Image GradientsRémi Pautrat, Daniel Barath, Viktor Larsson, Martin R. Oswald et al.CVPR 2023
- SOLD2: Self-Supervised Occlusion-Aware Line Description and DetectionRémi Pautrat, Juan-Ting Lin, Viktor Larsson, Martin R. Oswald et al.CVPR 2021
- ELSD: Efficient Line Segment Detector and DescriptorHaotian Zhang, Yicheng Luo, Fangbo Qin, Yijia He et al.ICCV 2021 · 32 citations
- SYENet: A Simple Yet Effective Network for Multiple Low-Level Vision Tasks with Real-time Performance on Mobile DeviceWeiran Gou, Ziyao Yi, Yan Xiang, Shaoqing Li et al.ICCV 2023 · 12 citations
