Nodes/comfyui_cv/cv2.clipLine
ComfyUI Node

cv2.clipLine

Raw wrapper of cv2.clipLine(imgRect, pt1, pt2). 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.clipLine
  • pt1
  • pt2
  • retval
  • pt1
  • pt2
imgRect_x0
imgRect_y0
imgRect_w0
imgRect_h0
Categoryimage/CV/low-level/cv2 C

Inputs (6)

NameTypeDefaultDescription
imgRect_xINT0-2147483648–2147483647Rectangle top-left corner X in pixels.
imgRect_yINT0-2147483648–2147483647Rectangle top-left corner Y in pixels.
imgRect_wINT00–2147483647Rectangle width in pixels (>= 0).
imgRect_hINT00–2147483647Rectangle height in pixels (>= 0).
pt1CV_TUPLE0,0First line point. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place.
pt2CV_TUPLE0,0Second line point. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place.

Outputs (3)

NameTypeDescription
retvalBOOLEAN
pt1CV_TUPLE- - - Pixel coordinates (x, y) as ONE composite value - wire it straight into any cv2 point input (center, seedPoint, pt1/pt2) or into 'CV Split Tuple' for the separate numbers.
pt2CV_TUPLE- - - Pixel coordinates (x, y) as ONE composite value - wire it straight into any cv2 point input (center, seedPoint, pt1/pt2) or into 'CV Split Tuple' for the separate numbers.