Creates a LineSegmentDetector object and initializes it
lsd = cv.LineSegmentDetector()
lsd = cv.LineSegmentDetector('OptionName', optionValue, ...)
Options
- Refine The way found lines will be refined, one of:
- None No refinement applied.
- Standard (default) Standard refinement is applied. E.g.
breaking arches into smaller straighter line approximations.
- Advanced Advanced refinement. Number of false alarms is
calculated, lines are refined through increase of precision,
decrement in size, etc.
- Scale The scale of the image that will be used to find the
lines. In the range
[0,1)
. default 0.8
- SigmaScale Sigma for Gaussian filter. It is computed as
sigma = SigmaScale/Scale
. default 0.6
- QuantError Bound to the quantization error on the gradient
norm. default 2.0
- AngleTol Gradient angle tolerance in degrees. default 22.5
- DetectionThreshold Detection threshold:
-log10(NFA) > DetectionThreshold
. Used only when advanced
refinement is chosen. default 0
- MinDensity Minimal density of aligned region points in the
enclosing rectangle. default 0.7
- NBins Number of bins in pseudo-ordering of gradient
modulus. default 1024
The cv.LineSegmentDetector algorithm is defined using the
standard values. Only advanced users may want to edit those, as
to tailor it for their own application.