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
imageInputOutputArrayinput/output image. It must have 1 or 3 channels. The number of channels is not altered.
cornersPoint2f[][]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.
idsIEnumerable<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
imageInputOutputArrayinput/output image. It must have 1 or 3 channels. The number of channels is not altered.
cornersPoint2f[][]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.
idsIEnumerable<int>vector of identifiers for markers in markersCorners. Optional, if not provided, ids are not painted.
borderColorScalarcolor of marker borders. Rest of colors (text color and first corner color) are calculated based on this one to improve visualization.