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.
cv2.clipLine
- pt1
- pt2
- retval
- pt1
- pt2
◄imgRect_x0►
◄imgRect_y0►
◄imgRect_w0►
◄imgRect_h0►
Categoryimage/CV/low-level/cv2 C
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| imgRect_x | INT | 0-2147483648–2147483647 | Rectangle top-left corner X in pixels. |
| imgRect_y | INT | 0-2147483648–2147483647 | Rectangle top-left corner Y in pixels. |
| imgRect_w | INT | 00–2147483647 | Rectangle width in pixels (>= 0). |
| imgRect_h | INT | 00–2147483647 | Rectangle height in pixels (>= 0). |
| pt1 | CV_TUPLE | 0,0 | First 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. |
| pt2 | CV_TUPLE | 0,0 | Second 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)
| Name | Type | Description |
|---|---|---|
| retval | BOOLEAN | — |
| pt1 | CV_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. |
| pt2 | CV_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. |