createLineSegmentDetector
import { createLineSegmentDetector } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Creates a smart pointer to a LineSegmentDetector object and initializes it.
The LineSegmentDetector algorithm is defined using the standard values. Only advanced users may want to edit those, as to tailor it for their own application.
createLineSegmentDetector(refine: number, scale: number, sigma_scale: number, quant: number, ang_th: number, log_eps: number, density_th: number, n_bins: number): LineSegmentDetector | null;9 available overloads
createLineSegmentDetector(): LineSegmentDetector | null;createLineSegmentDetector(refine: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number, sigma_scale: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number, sigma_scale: number, quant: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number, sigma_scale: number, quant: number, ang_th: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number, sigma_scale: number, quant: number, ang_th: number, log_eps: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number, sigma_scale: number, quant: number, ang_th: number, log_eps: number, density_th: number): LineSegmentDetector | null;createLineSegmentDetector(refine: number, scale: number, sigma_scale: number, quant: number, ang_th: number, log_eps: number, density_th: number, n_bins: number): LineSegmentDetector | null;refineThe way found lines will be refined, see #LineSegmentDetectorModes
scaleThe scale of the image that will be used to find the lines. Range (0..1].
sigma_scaleSigma for Gaussian filter. It is computed as sigma = sigma_scale/scale.
quantBound to the quantization error on the gradient norm.
ang_thGradient angle tolerance in degrees.
log_epsDetection threshold: -log10(NFA) > log_eps. Used only when advance refinement is chosen.
density_thMinimal density of aligned region points in the enclosing rectangle.
n_binsNumber of bins in pseudo-ordering of gradient modulus.
The LineSegmentDetector | null result.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.