omart075 / Markerless-AR

Uses OpenCV and OpenGL to create markerless AR
24 stars 5 forks source link

Homography decompose to extrinsic matrix #1

Open BryceQing opened 4 years ago

BryceQing commented 4 years ago

Hello, I'm very glad that i can find a repo that about markless ar with python. I'm trouble in homography decompose to extrinsic matrix. In my demo i have set the intrinsic matrix and get the homography matrix by your method but when i use this to transform coordinate from opencv to opengl it occur error that i can't see the object in the right place. Can you tell me your method to decompose Homography matirx, thanks

omart075 commented 4 years ago

Hey, so I haven't worked on this for a few years now so sorry if I can't help you debug too much. I remember having a similar problem.

If the object is being rendered but in the wrong place, I think the issue is with the intrinsic matrix. If you are using the my_calibration method to get the intrinsic matrix, you might have to adjust the constants depending on the resolution of your camera. I don't remember the logic behind the my_calibration method though.

These are some sources that helped me when I was working on this:

Hope this helps. Good luck!

BryceQing commented 4 years ago

Thanks :) Anyway, your code, and article are very significant for me.