Table of Contents

Method DrawDetectedMarkers

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DrawDetectedMarkers(InputOutputArray, Point2f[][], IEnumerable<int>)

Draw detected markers in image

public static void DrawDetectedMarkers(InputOutputArray image, Point2f[][] corners, IEnumerable<int> ids)

Parameters

image InputOutputArray

input/output image. It must have 1 or 3 channels. The number of channels is not altered.

corners Point2f[][]

positions of marker corners on input image. For N detected markers, the dimensions of this array should be Nx4.The order of the corners should be clockwise.

ids IEnumerable<int>

vector of identifiers for markers in markersCorners. Optional, if not provided, ids are not painted.

DrawDetectedMarkers(InputOutputArray, Point2f[][], IEnumerable<int>?, Scalar)

Draw detected markers in image

public static void DrawDetectedMarkers(InputOutputArray image, Point2f[][] corners, IEnumerable<int>? ids, Scalar borderColor)

Parameters

image InputOutputArray

input/output image. It must have 1 or 3 channels. The number of channels is not altered.

corners Point2f[][]

positions of marker corners on input image. For N detected markers, the dimensions of this array should be Nx4.The order of the corners should be clockwise.

ids IEnumerable<int>

vector of identifiers for markers in markersCorners. Optional, if not provided, ids are not painted.

borderColor Scalar

color of marker borders. Rest of colors (text color and first corner color) are calculated based on this one to improve visualization.