solvePnPRansac1
import { solvePnPRansac1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Finds rotation and translation vector. If cameraMatrix is given then run P3P. Otherwise run linear P6P and output cameraMatrix too.
solvePnPRansac1(objectPoints: Mat, imagePoints: Mat, cameraMatrix: Mat, distCoeffs: Mat, rvec: Mat, tvec: Mat, inliers: Mat, params: UsacParams): boolean;2 available overloads
solvePnPRansac1(objectPoints: Mat, imagePoints: Mat, cameraMatrix: Mat, distCoeffs: Mat, rvec: Mat, tvec: Mat, inliers: Mat): boolean;solvePnPRansac1(objectPoints: Mat, imagePoints: Mat, cameraMatrix: Mat, distCoeffs: Mat, rvec: Mat, tvec: Mat, inliers: Mat, params: UsacParams): boolean;objectPointsobject points argument (Mat).
imagePointsimage points argument (Mat).
cameraMatrixInput/output value, modified by the native operation. camera matrix argument (Mat).
distCoeffsdist coeffs argument (Mat).
rvecOutput destination, filled by the native operation. rvec argument (Mat).
tvecOutput destination, filled by the native operation. tvec argument (Mat).
inliersOutput destination, filled by the native operation. inliers argument (Mat).
paramsparams argument (UsacParams).
The boolean result.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.