Class CharucoDetector
- Namespace
- OpenCvSharp.Aruco
- Assembly
- OpenCvSharp.dll
CharucoDetector detects ChArUco board corners and diamond markers.
public class CharucoDetector : CvObject, IDisposable
- Inheritance
-
CharucoDetector
- Implements
- Inherited Members
Constructors
CharucoDetector(CharucoBoard)
Creates CharucoDetector with default parameters.
public CharucoDetector(CharucoBoard board)
Parameters
boardCharucoBoard
CharucoDetector(CharucoBoard, InputArray, InputArray, int, bool, bool, DetectorParameters?, RefineParameters?)
Creates CharucoDetector.
public CharucoDetector(CharucoBoard board, InputArray cameraMatrix, InputArray distCoeffs, int minMarkers = 2, bool tryRefineMarkers = false, bool checkMarkers = true, DetectorParameters? detectorParams = null, RefineParameters? refineParams = null)
Parameters
boardCharucoBoardcameraMatrixInputArraydistCoeffsInputArrayminMarkersinttryRefineMarkersboolcheckMarkersbooldetectorParamsDetectorParameters?refineParamsRefineParameters?
Methods
DetectBoard(InputArray, out Point2f[], out int[], out Point2f[][], out int[])
Detect aruco markers and interpolate position of ChArUco board corners.
public void DetectBoard(InputArray image, out Point2f[] charucoCorners, out int[] charucoIds, out Point2f[][] markerCorners, out int[] markerIds)
Parameters
imageInputArraycharucoCornersPoint2f[]charucoIdsint[]markerCornersPoint2f[][]markerIdsint[]
DetectDiamonds(InputArray, out Point2f[][], out Vec4i[], out Point2f[][], out int[])
Detect ChArUco Diamond markers.
public void DetectDiamonds(InputArray image, out Point2f[][] diamondCorners, out Vec4i[] diamondIds, out Point2f[][] markerCorners, out int[] markerIds)
Parameters
imageInputArraydiamondCornersPoint2f[][]diamondIdsVec4i[]markerCornersPoint2f[][]markerIdsint[]
GetBoard()
Gets the ChArUco board used by this detector.
public CharucoBoard GetBoard()
Returns
GetCharucoParameters()
Gets the charuco detection parameters currently used.
public CharucoParameters GetCharucoParameters()
Returns
GetDetectorParameters()
Gets the detector parameters currently used for marker detection.
public DetectorParameters GetDetectorParameters()
Returns
GetRefineParameters()
Gets the marker refine detection parameters currently used.
public RefineParameters GetRefineParameters()
Returns
SetBoard(CharucoBoard)
Sets the ChArUco board used by this detector.
public void SetBoard(CharucoBoard board)
Parameters
boardCharucoBoard
SetCharucoParameters(CharucoParameters)
Sets the charuco detection parameters to be used.
public void SetCharucoParameters(CharucoParameters charucoParameters)
Parameters
charucoParametersCharucoParameters
SetDetectorParameters(DetectorParameters)
Sets the detector parameters to be used for marker detection.
public void SetDetectorParameters(DetectorParameters detectorParameters)
Parameters
detectorParametersDetectorParameters
SetRefineParameters(RefineParameters)
Sets the marker refine detection parameters to be used.
public void SetRefineParameters(RefineParameters refineParameters)
Parameters
refineParametersRefineParameters