Nodes/comfyui_cv/cv2.HoughLinesP
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.HoughLinesP
  • image
  • nparray
rho0.0000
theta0.0000
threshold0
minLineLength0.0000
maxLineGap0.0000
Categoryimage/CV/low-level/cv2 H

Inputs (6)

NameTypeDefaultDescription
imageNPARRAY,IMAGE,MASK8-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.
rhoFLOAT0.0000-1e+38–1e+38Distance resolution of the accumulator in pixels.
thetaFLOAT0.0000-1e+38–1e+38Angle resolution of the accumulator in radians.
thresholdINT0-2147483648–2147483647%Accumulator threshold parameter. Only those lines are returned that get enough votes ( $>\texttt{threshold}$ ).
minLineLengthoptFLOAT0.0000-1e+38–1e+38Minimum line length. Line segments shorter than that are rejected. Preset to the OpenCV default (0.0).
maxLineGapoptFLOAT0.0000-1e+38–1e+38Maximum allowed gap between points on the same line to link them. Preset to the OpenCV default (0.0).

Outputs (1)

NameTypeDescription
nparrayNPARRAY