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.
CV Points
- points
- count
◄points[[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]]►
◄dtypefloat32►
Categoryimage/CV/low-level
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| points | STRING | [[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. |
| dtype | COMBO | float32 | Element type. float32 is what cv2 geometry functions (solvePnP / projectPoints) expect for points. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| points | NPARRAY | Nx1x2 or Nx1x3 point array. |
| count | INT | — |