Solve the assessment of coplanar points with EmguCV (OpenCV)

I have 4 points on the same plane (the flat square of an object) detected in the camera, and I'm trying to work out the pose of this square relative to the camera.

I am using the latest version of EmguCV ( http://www.emgu.com/wiki/index.php/Main_Page ), which is the C # wrapper for OpenCV.

I saw POSIT ( http://opencv.willowgarage.com/wiki/Posit ), but this will not work for coplanar points. I was wondering if there is anything that can solve the evaluation of coplanar posture in OpenCV.

I also saw solvePnp http://opencv.willowgarage.com/documentation/cpp/camera_calibration_and_3d_reconstruction.html#cv-solvepnp which I believe will do what I want, but I cannot find this functionality in EmguCV.

Does anyone know how to solve this problem with EmguCV?

+4
source share
2 answers

Although SolvePnP is not available in emgu, you can still calculate homography if you have at least 4-point correspondences on the plane (what you have). See the documentation for CameraCalibration.FindHomography if you are unsure. Once you have the homography, you can decompose it into a turn and a translation, and therefore to a camera. Take a look at this article .

0
source

Emgu.CV::CameraCalibration.SolvePnP(Emgu.CV.Structure.MCvPoint3D32f [], System.Drawing.PointF [], Emgu.CV.IntrinsicCameraParameters, Emgu.CV.CvEnum.SolvePnpMethod)

Update and install the latest NuGet package.

Evaluates the external parameters of the camera using known internal parameters and external parameters for each view. The coordinates of the points of the 3D object and their corresponding 2D projections must be indicated. This feature also minimizes back projection error.

0
source

Source: https://habr.com/ru/post/1414965/


All Articles