Phreak87 / DewarpSharp

Dewarping document pages using cubic sheet award winning model (CTM)
GNU General Public License v3.0
5 stars 2 forks source link

Form1.vb Line 213 - SolvePNP #1

Open Phreak87 opened 6 years ago

Phreak87 commented 6 years ago

i dont know how to get the same values as in python script from this function for RVec and TVec. Please help to correct the arrays for the right output.

CvInvoke.SolvePnP

fdncred commented 6 years ago

I looked at your code but didn't debug it. You have to ensure that the parameters are in the right container and the values in the parameters are in the right order.

It could be that when you push an item onto a list it may go on the top versus the bottom which would cause problems.

Maybe you've confirmed all this already.

Phreak87 commented 6 years ago

I will double check the order. You right - The right container is needed. In python it is done via np - so I don't know what's the right container. I use the container format from this example: https://www.learnopencv.com/head-pose-estimation-using-opencv-and-dlib/