ComfyUI Node
cv2.projectPoints
Raw wrapper of cv2.projectPoints(objectPoints, rvec, tvec, cameraMatrix, distCoeffs, aspectRatio?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.projectPoints
- objectPoints
- rvec
- tvec
- cameraMatrix
- distCoeffs
- imagePoints
- jacobian
◄aspectRatio0.0000►
Categoryimage/CV/low-level/cv2 P
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| objectPoints | NPARRAY | Array of object points expressed wrt. the world coordinate frame. A 3xN/Nx3 1-channel or 1xN/Nx1 3-channel (or vector\ ), where N is the number of points in the view. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| rvec | NPARRAY | The rotation vector () that, together with tvec, performs a change of basis from world to camera coordinate system, see for details. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| tvec | NPARRAY | The translation vector, see parameter description above. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| cameraMatrix | NPARRAY | Camera intrinsic matrix $\cameramatrix{A}$ . A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| distCoeffsopt | NPARRAY | Input vector of distortion coefficients $\distcoeffs$ . If the vector is empty, the zero distortion coefficients are assumed. Optional - leave unconnected for the OpenCV default (None). A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| aspectRatioopt | FLOAT | 0.0000-1e+38–1e+38 | Optional "fixed aspect ratio" parameter. If the parameter is not 0, the function assumes that the aspect ratio ($f_x / f_y$) is fixed and correspondingly adjusts the jacobian matrix. Preset to the OpenCV default (0.0). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| imagePoints | NPARRAY | — |
| jacobian | NPARRAY | — |