Giter Site home page Giter Site logo

Parameter documentation about mlsd HOT 2 CLOSED

JohnReid avatar JohnReid commented on June 22, 2024
Parameter documentation

from mlsd.

Comments (2)

geonm avatar geonm commented on June 22, 2024 1

Hi.

The box detection is not the contribution of the MLSD paper.

It is provided to emphasize that the detection of low level feature such as a line segment should be very fast.

Anyway, I heuristically designed all the parameters used in the box detection codes to find the appropriate rectangle object lying in the center of the image.

The default value of the parameter was found (simple grid search) using the evaluation data which I obtained with smartphone.

A brief explanation about all parameters is...

  • score: https://github.com/navervision/mlsd/blob/master/utils.py#L84
    The score value is for thresholding the reliability of the line segment.
    The larger the score value, the more lines that highly contrast to the background are mainly used.
  • outside ratio and inside ratio: https://github.com/navervision/mlsd/blob/master/utils.py#L257-L266
    The line segments obtained through score thresholding are regarded as straight lines to find the intersection points between straight lines. (ref)
    The intersection points are usually located inside and outside the line segments.
    In order to find a valid intersection which could be one of the corners of the square among countless intersections, we should discard the intersection points located far from the line segment or too inward by controlling outside ratio and inside ratio.
  • w_overlap: https://github.com/navervision/mlsd/blob/master/utils.py#L410-L415
    w_overlap is a weight for that the detected square overlaps with the line segments obtained by MLSD model.
  • w_degree and w_length: The larger these values, the more we find a square like a parallelogram shape
  • w_area: This is a weight for the area of the detected squares.
  • w_center: The larger this value, the more we find a square located in the center of the image.

from mlsd.

JohnReid avatar JohnReid commented on June 22, 2024

Thanks for that, much appreciated.

from mlsd.

Related Issues (20)

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.