Cal_PnP
Cal_PnP copied to clipboard
the compatibility of it with a new opencv version
hi. I try to this code with a new opencv version 4.5.0. But I can't do it at my pleasure. So, Could you tell me what version I must try it. Also, if we try version4.5.0, could you tell me points that should be revised of this code.
I will attend your reply.
@isaryo What error message did you see? We were using OpenCV 3.4.0 when testing.
I try to opencv version3.4.4. However I don't show a blue circle stands for clickpoint. May I ask probable cause? But I get Homography matrix and Reprojection error:0.0000000000. I don't care about it?
Hi @isaryo . I am glad that the code can run through with OpenCV 3.4.4. If you want to select the 2D pixel points (blue circles) on the image, set calSel2dPtFlg
in the config file to 1. A new window called selector of 2D points will pop out. Then you can click on the image to select each 2D point. Please refer to the README.md file for more details.
I referred and tried to set calSel2dPtFlg
in the config file to 1.
Then a new window popped out.
But I don't show blue circles of 'how to use step3' of README.md file.
@isaryo Did you try to click on the new window that popped out?
Yes. I clicked on the new window that popped out.
Thanks for confirming. Did you see any error message in the terminal? Can you try pressing some buttons, e.g., return/enter, esc, o, r, etc., before clicking on the pop-out window? Please let me know if that makes any change.
Only the case of o
when I press some buttons, pop out a new window without a colorful grid on the 3D plane.
error message is Reprojection error.
I am sorry about the error. If the problem still persists, you may set calSel2dPtFlg
in the config file to 0 and add the 2D coordinates manually in the config file at here.
The problem is that the window can catch events from your keyboard, but it cannot catch the mouse events properly.