# Return value of solvepnpransac

**URL:** <https://forum.opencv.org/t/return-value-of-solvepnpransac/2781>\
**Category:** Python\
**Created:** [April 15, 2021, 2:09pm UTC](https://forum.opencv.org/t/return-value-of-solvepnpransac/2781 "2021-04-15T14:09:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zsir](https://avatars.discourse-cdn.com/v4/letter/z/278dde/32.png) [@zsir](https://forum.opencv.org/u/zsir)\
**Post date:** [April 15, 2021, 2:09pm UTC](https://forum.opencv.org/t/return-value-of-solvepnpransac/2781/1 "2021-04-15T14:09:27Z")

</div>

I have a set of 2D-3D points, but they are not completely corresponding，may be a bit of mismatch. I think that using this set of points as the input of solvepnpransac will select the inner points and perform PNP solution and return one optimal rev and tec，however, the actual return value is very abnormal（tvec:like 10^20 or inf）,how is it that？
