Table of Contents

Method Identify

Namespace
OpenCvSharp.Aruco
Assembly
OpenCvSharp.dll

Identify(Mat, out int, out int, double)

Given a matrix of bits. Returns whether if marker is identified or not. It returns by reference the correct id (if any) and the correct rotation

public bool Identify(Mat onlyBits, out int idx, out int rotation, double maxCorrectionRate)

Parameters

onlyBits Mat
idx int

The identified marker id, or -1 if the marker was not identified.

rotation int

The identified marker rotation, or -1 if the marker was not identified.

maxCorrectionRate double

Returns

bool

Identify(Mat, out int, out int, double, float)

Given a matrix of pixel ratio ranging from 0 to 1. Returns whether if marker is identified or not. It returns by reference the correct id (if any) and the correct rotation

public bool Identify(Mat onlyCellPixelRatio, out int idx, out int rotation, double maxCorrectionRate, float validBitIdThreshold)

Parameters

onlyCellPixelRatio Mat
idx int

The identified marker id, or -1 if the marker was not identified.

rotation int

The identified marker rotation, or -1 if the marker was not identified.

maxCorrectionRate double
validBitIdThreshold float

acceptable threshold when comparing the detected marker to the dictionary during marker identification.

Returns

bool