Skip to content

solvePnPRansac1

geometryfunctionOpenCV 5.0.0
import { solvePnPRansac1 } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSobjectPoints, imagePoints, cameraMatrix, distCoeffs
FUNCTIONsolvePnPRansac1
RETURN TYPEboolean
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
objectPoints

object points argument (Mat).

imagePoints

image points argument (Mat).

cameraMatrix

Input/output value, modified by the native operation. camera matrix argument (Mat).

distCoeffs

dist coeffs argument (Mat).

rvec

Output destination, filled by the native operation. rvec argument (Mat).

tvec

Output destination, filled by the native operation. tvec argument (Mat).

inliers

Output destination, filled by the native operation. inliers argument (Mat).

params

params argument (UsacParams).

Returns

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.