Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plane normal vector #3

Open
nesi73 opened this issue Dec 1, 2023 · 1 comment
Open

plane normal vector #3

nesi73 opened this issue Dec 1, 2023 · 1 comment

Comments

@nesi73
Copy link

nesi73 commented Dec 1, 2023

Hi,

I don't understand how you select the plane normal with this: [0,1,0] instead of [0,0,1] like in the OpenCV example.

Plane normal vector at camera 1 coordinate. here, object axis -> camera frame.

n = np.array([0, 1, 0]).reshape((3, 1))

Thank you

@mzki
Copy link
Owner

mzki commented Jan 6, 2024

Hi,

My example assumes the XZ-plane of the object coordinates is parallel to the plane, which is align to the ground. So the plane normal vector of my example is [0,1,0] (note that the sign of normal vector is inverted to align the OpenCV example ). In contrast, It seems the OpenCV example assumes the XZ-plane of the object coordinates is orthogonal to the plane. So the plane normal vector of the OpenCV example is [0,0,1], (see solvePnP result of the chessboard in the OpenCV example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants