Nodes/comfyui_cv/CV Points
ComfyUI Node

CV Points

Authors an arbitrary point array from a Python literal - the general counterpart to 'CV Scalar' (one vector) and 'CV Grid Points' (a regular grid). Write a list of points: [[x, y], ...] -> Nx1x2 (image points or a polygon), or [[x, y, z], ...] -> Nx1x3 (3D object points for cv2.solvePnP / projectPoints, e.g. the corners of a virtual cube). Emits the same Nx1xD layout the detector / grid nodes produce.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Points
    • points
    • count
    points[[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]]
    dtypefloat32
    Categoryimage/CV/low-level

    Inputs (2)

    NameTypeDefaultDescription
    pointsSTRING[[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]]List of points as a literal: [[x, y], ...] for 2-D or [[x, y, z], ...] for 3-D. A single [x, y[, z]] is also accepted.
    dtypeCOMBOfloat32Element type. float32 is what cv2 geometry functions (solvePnP / projectPoints) expect for points.

    Outputs (2)

    NameTypeDescription
    pointsNPARRAYNx1x2 or Nx1x3 point array.
    countINT