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
4 points problem fitting (Markerless generic model-based tracking) #797
Comments
Hi, This is due to the planar pose estimation ambiguity: Small uncertainties in the 2D corner locations and the pose can be ambiguous in certain viewpoint. On the same topic, see #668 To solve the issue, try to use a 4th point not on the same plane. Or add a 5th point not on the same plane. |
Thanks for your reply. I have 2 more questions:
Regards, |
Can you describe a bit more what you want to achieve? For instance, do you have a fixed list of 3D coordinates and unknown correspondind 2D coordinates?
I don't think so, but if you can provide more information about your use case.
Getting this initial pose is tricky. If you have a method that provides the 2d coordinates, you can use |
Thanks for the tips. I think that initFromPose() is not what we are looking for, since the pose matrix is the real aim. Our goal is to compute the model fitting of an object starting from four 3D points (on the same plane) in the object frame and the four corresponding 2D points on the image plane (provided by our vision algorithm) in order to get the pose in the camera frame. |
Yes, I think so. You will need to tweak the RANSAC parameters like the maximum number of iterations, reprojection error threshold, etc. to have good results. |
Thanks again. Also, about the vector of 2D points: are they the pixel points on the image plane or are they expressed in meters? I imagine that it need that matrix in order to get the correct cMo. |
The vector of 2D points The conversion from pixel to meter has to be done prior calling this function using something similar to:
|
Hi,
I'm trying to use the Markerless generic model-based tracking tool for the edge detection of some objects. The aim is to reach the detection using 4 points defined on the same face but sometimes it does not work.
Below i'm showing you an example with a teabox.
Points numeration:
Error:
Do you know this kind of problem? If yes, why is this happening and is there some way to solve it? Thanks in advance.
Regards,
Andrea
The text was updated successfully, but these errors were encountered: