Table of Contents

Method DetectAndDecode

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DetectAndDecode(InputArray, out Point2f[], OutputArray)

Both detects and decodes QR code

public string DetectAndDecode(InputArray img, out Point2f[] points, OutputArray straightQrCode = default)

Parameters

img InputArray

grayscale or color (BGR) image containing QR code.

points Point2f[]

optional output array of vertices of the found QR code quadrangle. Will be empty if not found.

straightQrCode OutputArray

The optional output image containing rectified and binarized QR code

Returns

string