Table of Contents

Method DecodeMulti

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DecodeMulti(InputArray, IEnumerable<Point2f>)

Decodes QR codes in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.

public string?[] DecodeMulti(InputArray img, IEnumerable<Point2f> points)

Parameters

img InputArray

grayscale or color (BGR) image containing QR code.

points IEnumerable<Point2f>

Quadrangle vertices found by detect() method (or some other algorithm).

Returns

string[]

UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.

DecodeMulti(InputArray, IEnumerable<Point2f>, out Mat[])

Decodes QR codes in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.

public string?[] DecodeMulti(InputArray img, IEnumerable<Point2f> points, out Mat[] straightQrCode)

Parameters

img InputArray

grayscale or color (BGR) image containing QR code.

points IEnumerable<Point2f>

Quadrangle vertices found by detect() method (or some other algorithm).

straightQrCode Mat[]

The optional output image containing rectified and binarized QR code

Returns

string[]

UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.

DecodeMulti(InputArray, IEnumerable<Point2f>, out Mat[], bool)

Decodes QR codes in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.

protected string?[] DecodeMulti(InputArray img, IEnumerable<Point2f> points, out Mat[] straightQrCode, bool isOutputStraightQrCode)

Parameters

img InputArray

grayscale or color (BGR) image containing QR code.

points IEnumerable<Point2f>

Quadrangle vertices found by detect() method (or some other algorithm).

straightQrCode Mat[]

The optional output image containing rectified and binarized QR code

isOutputStraightQrCode bool

true to output straightQrCode

Returns

string[]

UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.