Start » Filter Reference » OpenCV » Camera Calibration And 3D Reconstruction » cvSolvePnPRansac
Module: | OpenCV |
---|
Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.
Name | Type | Description | |
---|---|---|---|
![]() |
inObjectPoints | Point3DArrayArray | |
![]() |
inImagePoints | Point2DArrayArray | |
![]() |
inCameraMatrix | Matrix | Optional initial camera matrix, required for inFixPrincipalPoint and inFixAspectRatio. |
![]() |
inDistCoeffs | Matrix | Coefficients of distortion |
![]() |
inUseExtrinsicGuess | Bool | |
![]() |
inIterationsCount | Integer | |
![]() |
inReprojectionError | Real | |
![]() |
inConfidence | Double | |
![]() |
inMethod | CvSolvePnPMethod | |
![]() |
outRVecs | Vector3DArray | Array with values of rotations for each points set |
![]() |
outTVecs | Vector3DArray | Array with values of translations for each points set |
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Inconsistent sizes of inImagePoints and inObjectPoints in cvSolvePnPRansac. |
DomainError | Missing inImagePoints or inObjectPoints in cvSolvePnPRansac. |
Complexity Level
This filter is available on Basic Complexity Level.