Table of Contents

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

board CharucoBoard

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

board CharucoBoard
cameraMatrix InputArray
distCoeffs InputArray
minMarkers int
tryRefineMarkers bool
checkMarkers bool
detectorParams DetectorParameters?
refineParams RefineParameters?

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

image InputArray
charucoCorners Point2f[]
charucoIds int[]
markerCorners Point2f[][]
markerIds int[]

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

image InputArray
diamondCorners Point2f[][]
diamondIds Vec4i[]
markerCorners Point2f[][]
markerIds int[]

GetBoard()

Gets the ChArUco board used by this detector.

public CharucoBoard GetBoard()

Returns

CharucoBoard

GetCharucoParameters()

Gets the charuco detection parameters currently used.

public CharucoParameters GetCharucoParameters()

Returns

CharucoParameters

GetDetectorParameters()

Gets the detector parameters currently used for marker detection.

public DetectorParameters GetDetectorParameters()

Returns

DetectorParameters

GetRefineParameters()

Gets the marker refine detection parameters currently used.

public RefineParameters GetRefineParameters()

Returns

RefineParameters

SetBoard(CharucoBoard)

Sets the ChArUco board used by this detector.

public void SetBoard(CharucoBoard board)

Parameters

board CharucoBoard

SetCharucoParameters(CharucoParameters)

Sets the charuco detection parameters to be used.

public void SetCharucoParameters(CharucoParameters charucoParameters)

Parameters

charucoParameters CharucoParameters

SetDetectorParameters(DetectorParameters)

Sets the detector parameters to be used for marker detection.

public void SetDetectorParameters(DetectorParameters detectorParameters)

Parameters

detectorParameters DetectorParameters

SetRefineParameters(RefineParameters)

Sets the marker refine detection parameters to be used.

public void SetRefineParameters(RefineParameters refineParameters)

Parameters

refineParameters RefineParameters