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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.projectPoints
  • objectPoints
  • rvec
  • tvec
  • cameraMatrix
  • distCoeffs
  • imagePoints
  • jacobian
aspectRatio0.0000
Categoryimage/CV/low-level/cv2 P

Inputs (6)

NameTypeDefaultDescription
objectPointsNPARRAYArray 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.
rvecNPARRAYThe 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.
tvecNPARRAYThe translation vector, see parameter description above. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
cameraMatrixNPARRAYCamera intrinsic matrix $\cameramatrix{A}$ . A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
distCoeffsoptNPARRAYInput 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.
aspectRatiooptFLOAT0.0000-1e+38–1e+38Optional "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)

NameTypeDescription
imagePointsNPARRAY
jacobianNPARRAY