| CvArucoDetectMarkers Method |
Basic marker detection
Namespace:
OpenCvSharp.Aruco
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void DetectMarkers(
InputArray image,
Dictionary dictionary,
out Point2f[][] corners,
out int[] ids,
DetectorParameters parameters,
out Point2f[][] rejectedImgPoints
)
Public Shared Sub DetectMarkers (
image As InputArray,
dictionary As Dictionary,
<OutAttribute> ByRef corners As Point2f()(),
<OutAttribute> ByRef ids As Integer(),
parameters As DetectorParameters,
<OutAttribute> ByRef rejectedImgPoints As Point2f()()
)
public:
static void DetectMarkers(
InputArray^ image,
Dictionary^ dictionary,
[OutAttribute] array<array<Point2f>^>^% corners,
[OutAttribute] array<int>^% ids,
DetectorParameters^ parameters,
[OutAttribute] array<array<Point2f>^>^% rejectedImgPoints
)
static member DetectMarkers :
image : InputArray *
dictionary : Dictionary *
corners : Point2f[][] byref *
ids : int[] byref *
parameters : DetectorParameters *
rejectedImgPoints : Point2f[][] byref -> unit
Parameters
- image
- Type: OpenCvSharpInputArray
input image - dictionary
- Type: OpenCvSharp.ArucoDictionary
indicates the type of markers that will be searched - corners
- Type: OpenCvSharpPoint2f
vector of detected marker corners.
For each marker, its four corners are provided. For N detected markers,
the dimensions of this array is Nx4.The order of the corners is clockwise. - ids
- Type: SystemInt32
vector of identifiers of the detected markers. The identifier is of type int.
For N detected markers, the size of ids is also N. The identifiers have the same order than the markers in the imgPoints array. - parameters
- Type: OpenCvSharp.ArucoDetectorParameters
marker detection parameters - rejectedImgPoints
- Type: OpenCvSharpPoint2f
contains the imgPoints of those squares whose inner code has not a
correct codification.Useful for debugging purposes.
See Also