shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.37k stars 1.15k forks source link

CvAruco.interpolateCornersCharuco missing? #1603

Open D3D-s opened 1 year ago

D3D-s commented 1 year ago

Hello,

Thank you very much for the wonderful library, it is much more convenient than Emgu!!!

However, I am a beginner and I have encountered a problem that I don't understand. I am trying to reproduce this example - https://docs.opencv.org/3.4/df/d4a/tutorial_charuco_detection.html Specifically, I need to know very accurate positions of the chessboard intersections. Using your library, I was able to find the markers themselves. But unfortunately, these coordinates are not accurate. I assume that the function interpolateCornersCharuco is missing? Could you please suggest an alternative or let me know if I can directly pay for adding interpolateCornersCharuco to your library.

var LeftCorners = new Point2f[][] { }; var LeftIds = new int[] { }; var LeftRejected = new Point2f[][] { }; var RigthCorners = new Point2f[][] { }; var RigthIds = new int[] { }; var RigthRejected = new Point2f[][] { }; CvAruco.DetectMarkers(leftImage, dictionary, out LeftCorners, out LeftIds, new DetectorParameters(), out LeftRejected); CvAruco.DetectMarkers(rightImage, dictionary, out RigthCorners, out RigthIds, new DetectorParameters(), out RigthRejected);