Nodes/comfyui_cv/cv2.fisheye.solvePnPRansac
ComfyUI Node

cv2.fisheye.solvePnPRansac

Raw wrapper of cv2.fisheye.solvePnPRansac(objectPoints, imagePoints, cameraMatrix, distCoeffs, useExtrinsicGuess?, iterationsCount?, reprojectionError?, confidence?, flags?, criteria?). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'fisheye' module. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.fisheye.solvePnPRansac
  • objectPoints
  • imagePoints
  • cameraMatrix
  • distCoeffs
  • bool
  • nparray_1
  • nparray_2
  • nparray_3
useExtrinsicGuess
iterationsCount
reprojectionError
confidence0.9900
flags
criteria_typemax count or epsilon (whichever first)
criteria_max_count30
criteria_epsilon0.00
Categoryimage/CV/low-level/fisheye

Inputs (12)

NameTypeDefaultDescription
objectPointsNPARRAY,IMAGE,MASK - - - Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
imagePointsNPARRAY,IMAGE,MASK - - - Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
cameraMatrixNPARRAY,IMAGE,MASK - - - Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
distCoeffsNPARRAY,IMAGE,MASK - - - Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
useExtrinsicGuessoptSTRING - - - Optional - leave blank to use the OpenCV default. Accepts a Python literal, e.g. 3, 1.5, true, or (3, 3).
iterationsCountoptSTRING - - - Optional - leave blank to use the OpenCV default. Accepts a Python literal, e.g. 3, 1.5, true, or (3, 3).
reprojectionErroroptSTRING - - - Optional - leave blank to use the OpenCV default. Accepts a Python literal, e.g. 3, 1.5, true, or (3, 3).
confidenceoptFLOAT0.9900-1e+38–1e+38 - - - Preset to the OpenCV default (0.99).
flagsoptSTRING - - - Optional - leave blank to use the OpenCV default. Accepts a Python literal, e.g. 3, 1.5, true, or (3, 3).
criteria_typeoptCOMBOmax count or epsilon (whichever first)When to stop iterating: after max_count iterations, when the change drops below epsilon, or whichever comes first.
criteria_max_countoptINT301–2147483647Maximum iterations (ignored when 'epsilon only').
criteria_epsilonoptFLOAT0.000–1e+38Target accuracy / smallest change worth continuing for (ignored when 'max count only').

Outputs (4)

NameTypeDescription
boolBOOLEAN
nparray_1NPARRAY
nparray_2NPARRAY
nparray_3NPARRAY