ComfyUI Node
CV Grid Points
Generates a regular planar grid of 3D points - the object points cv2.solvePnP / cv2.calibrateCamera need for a chessboard, which you otherwise cannot type (a 9x6 board is 54x3 values). Points run row by row to match cv2.findChessboardCorners order: (0,0,z), (1,0,z), ... scaled by 'spacing'. Pair the corners from cv2.findChessboardCorners (image points) with this grid (object points) and a camera matrix in cv2.solvePnP to recover the board's pose.
CV Grid Points
- points
- count
◄cols9►
◄rows6►
◄spacing1.00►
◄z0.00►
Categoryimage/CV/low-level
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| cols | INT | 91–1000 | Points per row (e.g. chessboard inner corners per row). |
| rows | INT | 61–1000 | Points per column (e.g. inner corners per column). |
| spacing | FLOAT | 1.000.000001–1000000 | Distance between adjacent points (e.g. the square size in mm). 1.0 = unit / relative coordinates. |
| zopt | FLOAT | 0.00-1000000–1000000 | Constant plane height for every point (0 = a flat board on the z=0 plane). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| points | NPARRAY | (cols*rows)x1x3 float32 grid points, row-major. |
| count | INT | — |