ComfyUI Node
CV Detect Lines (Hough)
Detects straight line segments (Canny + probabilistic Hough transform) and draws them.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image. A batch is processed frame by frame. | |
| canny_low | FLOAT | 50.000–5000 | Lower Canny hysteresis threshold for the edge pass that feeds Hough; edges weaker than this are discarded. |
| canny_high | FLOAT | 150.000–5000 | Upper Canny hysteresis threshold; edges stronger than this are always kept. |
| threshold | INT | 501–10000 | Minimum number of votes - higher finds fewer, stronger lines. |
| min_length | FLOAT | 50.001–16384 | Minimum segment length in pixels. |
| max_gap | FLOAT | 10.000–1000 | Maximum gap between collinear segments to merge them. |
| thickness | INT | 21–64 | Line width in pixels used to draw the detected segments. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| overlay | IMAGE | — |
| lines_only | IMAGE | — |