Giter Club home page Giter Club logo

lsdnet's Introduction

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

Official implementation of "LSDNet: Trainable Modification of LSD Algorithm for Real-Time Line Segment Detection." by Teplyakov, Lev, Leonid Erlygin, and Evgeny Shvets. IEEE Access 10 (2022): 45256-45265.

links to the paper: IEEE Access, arXiv.org

Quantitative Results

Qualitative Results

Video demo

Images from Wireframe dataset of varying number of salient line segments

LSD detector

HAWP detector

M-LSD-tidy detector

LSDNet, the proposed detector

Setting up LSDNet Project

WARNING: all the scripts run in docker container without GPU support. We preferred plug-and-play demo with low FPS to top performance with hardcore NVIDIA-docker installation.

Installation

cd devops
sh build_image.sh

it takes about 10 min, it will download all the requirements and compile OpenCV the way we need it.

Launch Interactive Demo

The Interactive Demo allows you to play with LSDNet on single images.

To launch the demo server (based on Gradio) run

cd devops
sh launch_web_vis.sh

This commad will launch a web server and print its address. The interface should look like this.

Running on Your Images

To make predictions on your images, specify in devops/detect_lines.sh the following variables:

  • input_path - path to an images folder or a single image (images must be png or jpg)
  • out_path - path where predicted segments will be saved in .txt format (x1,y1, x2,y2,conf) - the coordinates of segments' endpoints and segment confidence

As a container mounts to the repo's root directory, paths above must be:

  • relative to lsd/detect_lines.py file
  • inside the repo's directory

Then make predictions on your images with

cd devops
sh detect_lines.sh

lsdnet's People

Contributors

zeronsix avatar

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.