ComfyUI Node
cv2.HoughLinesP
Raw wrapper of cv2.HoughLinesP(image, rho, theta, threshold, minLineLength?, maxLineGap?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.HoughLinesP
- image
- nparray
◄rho0.0000►
◄theta0.0000►
◄threshold0►
◄minLineLength0.0000►
◄maxLineGap0.0000►
Categoryimage/CV/low-level/cv2 H
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | NPARRAY,IMAGE,MASK | 8-bit, single-channel binary source image. The image may be modified by the function. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| rho | FLOAT | 0.0000-1e+38–1e+38 | Distance resolution of the accumulator in pixels. |
| theta | FLOAT | 0.0000-1e+38–1e+38 | Angle resolution of the accumulator in radians. |
| threshold | INT | 0-2147483648–2147483647 | %Accumulator threshold parameter. Only those lines are returned that get enough votes ( $>\texttt{threshold}$ ). |
| minLineLengthopt | FLOAT | 0.0000-1e+38–1e+38 | Minimum line length. Line segments shorter than that are rejected. Preset to the OpenCV default (0.0). |
| maxLineGapopt | FLOAT | 0.0000-1e+38–1e+38 | Maximum allowed gap between points on the same line to link them. Preset to the OpenCV default (0.0). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |