# How to verify the accuracy of solvePnP return values?

Hello , I have used `solvePnP`

to find the Pose of object and I am getting some results for `rvet`

and `tvet`

. Now I wanted to know how accurate they are.

How to I compute the accuracy of retunred values of solvePnP? 1 method I found was re-projection error.

But is there any way to **generate test cases**:

**Data need to generate as test cases:**

(image points, object points)

(expected rvet, expected tvet)

**Result:**
(computed rvet, computed tvet) - return values from solvePnP with each test case that we generated.

And now comparing the `((expected rvet, expected tvet)`

and `(computed rvet, computed tvet)`

to measure the accuracy for different flags available for solvePnP.

**Are there any ways/software/tools that helps me to generate accurate test cases.**(Varieties of test cases may include nose environment, distance of object from camera varies, planar object points, non co-planar object points .. etc) ?