danini/graph-cut-ransac

Questions about PnP solutions

uurbsrn4d opened this issue · 4 comments

Hi @danini

I was trying your PNP/Ransac implementation for python. I had a few questions.

ss

It seems like opencv version ~50x faster. Is this expected because of the different pnp and ransac solutions used in methods or something is wrong ? By the way Pose solutions are nearly same for both versions.

My second question is are you planing to add other pnp methods such as SQPNP?

Thanks for your great work and sharing.

Ah sorry for not answering earlier.
This definitely seems some problem, I will investigate it tomorrow.
I am planning on adding yes some other PnP solver since the current one, DLSPnP is not too reliable in my tests.

Is there any update on this issue?

Actually, I have slightly more time than usual so I will look into this tomorrow and will, hopefully, solve it.

I replaced all the solvers. It know works better than OpenCV on the example I tried.
https://github.com/danini/graph-cut-ransac/blob/master/examples/example_absolute_pose.ipynb

I still need to update the example since I added outliers artificially, but the algorithm should work and be fast now.
Let me know if there still is a problem.