1 | initial version |
My impression is that you're getting bad results from solvePnP. The points are all in a very narrow line. There could be an ambiguity that is causing it to be flipped or rotated. Do you have the truth to check it against?
Second possibility. Your points are in the same order, correct? IE: Object Point 1 is Image Point 1, Object Point 2 is Image Point 2 and so forth.
I'm afraid I don't see anything obvious, but I can take a closer look later or tomorrow.
2 | No.2 Revision |
My impression is that you're getting bad results from solvePnP. The points are all in a very narrow line. There could be an ambiguity that is causing it to be flipped or rotated. Do you have the truth to check it against?
Second possibility. Your points are in the same order, correct? IE: Object Point 1 is Image Point 1, Object Point 2 is Image Point 2 and so forth.
I'm afraid I don't see anything obvious, but I can take a closer look later or tomorrow. tomorrow.
EDIT: Here's what I'm seeing from solvePnP and drawAxis. Red is x-axis, Green is y, Blue is z. Is this what the coordinate system would look like from the camera location?