使用单应矩阵(AR)确定正确的位置

时间:2022-05-29 23:36:59

I use surf in emgu cv lib to detect and recgnize my object i need to insert 3d model in the place of this object i have the homography matrix what i want to know is how to get modelview matrix of sharpgl from this homography matrix .i want steps that can result me the correct modelview matrix where i can place the 3d object any answer will help me thanks in advance

我在emgu cv lib中使用surf来检测和重新调整我的对象我需要在这个对象的位置插入3d模型我有单应矩阵我想知道的是如何从这个单应矩阵获得sharpgl的modelview矩阵。我想要可以让我得到正确的模型视图矩阵的步骤,我可以将3d对象放置任何答案,这将有助于我提前感谢

2 个解决方案

#1


0  

Take a look at AForge.net. The author of that library did something very similar using glyphs and then inserting his own 3D model in place of the glyph. The library handles the 3d pose of the glyph and applies those to the 3d model. The project can be found here

看看AForge.net吧。该库的作者使用字形做了非常相似的事情,然后插入自己的3D模型代替字形。库处理字形的3d姿势并将其应用于3d模型。该项目可以在这里找到

http://www.aforgenet.com/projects/gratf/

http://www.aforgenet.com/projects/gratf/

I dont know how you would do this same thing with Open CV and Emgu.

我不知道你怎么用Open CV和Emgu做同样的事情。

#2


0  

You should simply calibrate your camera using Zhang's method to get camera matrices and then use H decomposition as described in the link you found. To sum up:

您只需使用Zhang的方法校准相机以获取相机矩阵,然后按照您找到的链接中所述使用H分解。总结一下:

  1. Perform Classical checkboard corner detection (emgucv code here)
  2. 执行经典的检查板角点检测(这里是emgucv代码)
  3. Increase corner detection accuracy to subpixel level invoking FindCornerSubPix() function
  4. 将角点检测精度提高到亚像素级别,调用FindCornerSubPix()函数
  5. Finally use CameraCalibration.CalibrateCamera() to calculate the intrinsic camera parameters
  6. 最后使用CameraCalibration.CalibrateCamera()来计算内在的摄像头参数

Hope this helps

希望这可以帮助

#1


0  

Take a look at AForge.net. The author of that library did something very similar using glyphs and then inserting his own 3D model in place of the glyph. The library handles the 3d pose of the glyph and applies those to the 3d model. The project can be found here

看看AForge.net吧。该库的作者使用字形做了非常相似的事情,然后插入自己的3D模型代替字形。库处理字形的3d姿势并将其应用于3d模型。该项目可以在这里找到

http://www.aforgenet.com/projects/gratf/

http://www.aforgenet.com/projects/gratf/

I dont know how you would do this same thing with Open CV and Emgu.

我不知道你怎么用Open CV和Emgu做同样的事情。

#2


0  

You should simply calibrate your camera using Zhang's method to get camera matrices and then use H decomposition as described in the link you found. To sum up:

您只需使用Zhang的方法校准相机以获取相机矩阵,然后按照您找到的链接中所述使用H分解。总结一下:

  1. Perform Classical checkboard corner detection (emgucv code here)
  2. 执行经典的检查板角点检测(这里是emgucv代码)
  3. Increase corner detection accuracy to subpixel level invoking FindCornerSubPix() function
  4. 将角点检测精度提高到亚像素级别,调用FindCornerSubPix()函数
  5. Finally use CameraCalibration.CalibrateCamera() to calculate the intrinsic camera parameters
  6. 最后使用CameraCalibration.CalibrateCamera()来计算内在的摄像头参数

Hope this helps

希望这可以帮助