ComfyUI Node
cv2.approxPolyDP
Raw wrapper of cv2.approxPolyDP(curve, epsilon, closed). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.approxPolyDP
- curve
- nparray
◄epsilon0.0000►
◄closedfalse►
Categoryimage/CV/low-level/cv2 A
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| curve | NPARRAY | Input vector of a 2D point stored in std::vector or Mat A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| epsilon | FLOAT | 0.0000-1e+38–1e+38 | Parameter specifying the approximation accuracy. This is the maximum distance between the original curve and its approximation. |
| closed | BOOLEAN | false | If true, the approximated curve is closed (its first and last vertices are connected). Otherwise, it is not closed. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |