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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.approxPolyDP
  • curve
  • nparray
epsilon0.0000
closedfalse
Categoryimage/CV/low-level/cv2 A

Inputs (3)

NameTypeDefaultDescription
curveNPARRAYInput 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.
epsilonFLOAT0.0000-1e+38–1e+38Parameter specifying the approximation accuracy. This is the maximum distance between the original curve and its approximation.
closedBOOLEANfalseIf true, the approximated curve is closed (its first and last vertices are connected). Otherwise, it is not closed.

Outputs (1)

NameTypeDescription
nparrayNPARRAY