Comments (2)
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
andinside 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 controllingoutside ratio
andinside 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
andw_length
: The larger these values, the more we find a square like a parallelogram shapew_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.
Thanks for that, much appreciated.
from mlsd.
Related Issues (20)
- Flask HOT 2
- Convert to tensorflowjs HOT 13
- 我记得之前readme文件中有个电路图,可否再发一下
- How to convert tflite model into onnx format? HOT 1
- center_scores in pred_square seems to scalar values. HOT 4
- Android app demo HOT 1
- Meta files of saved models HOT 1
- int8 quantization HOT 2
- Project dependencies may have API risk issues
- input shape HOT 2
- low fps HOT 1
- Negative number of test results HOT 3
- [Q] Was the reported FPS achieved using GPU? HOT 5
- It runs very slow on the CPU
- What tools should I use to label my own training set
- GPU:
- post-processing of box detector HOT 7
- how can deploy like official HOT 1
- Center score in post-processing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlsd.