Table of Contents

Method Decode

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Decode(InputArray, IEnumerable<Point2f>, OutputArray)

Decodes QR code 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 Decode(InputArray img, IEnumerable<Point2f> points, OutputArray straightQrCode = default)

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 OutputArray

The optional output image containing rectified and binarized QR code

Returns

string