Nodes/comfyui_cv/CV Detect Lines (Hough)
ComfyUI Node

CV Detect Lines (Hough)

Detects straight line segments (Canny + probabilistic Hough transform) and draws them.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Detect Lines (Hough)
  • image
  • overlay
  • lines_only
canny_low50.00
canny_high150.00
threshold50
min_length50.00
max_gap10.00
thickness2
Categoryimage/CV

Inputs (7)

NameTypeDefaultDescription
imageIMAGEInput image. A batch is processed frame by frame.
canny_lowFLOAT50.000–5000Lower Canny hysteresis threshold for the edge pass that feeds Hough; edges weaker than this are discarded.
canny_highFLOAT150.000–5000Upper Canny hysteresis threshold; edges stronger than this are always kept.
thresholdINT501–10000Minimum number of votes - higher finds fewer, stronger lines.
min_lengthFLOAT50.001–16384Minimum segment length in pixels.
max_gapFLOAT10.000–1000Maximum gap between collinear segments to merge them.
thicknessINT21–64Line width in pixels used to draw the detected segments.

Outputs (2)

NameTypeDescription
overlayIMAGE
lines_onlyIMAGE