Click or drag to resize

QRCodeDetectorDecode Method

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.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public string Decode(
	InputArray img,
	IEnumerable<Point2f> points,
	OutputArray straightQrCode = null
)

Parameters

img
Type: OpenCvSharpInputArray
grayscale or color (BGR) image containing QR code.
points
Type: System.Collections.GenericIEnumerablePoint2f
Quadrangle vertices found by detect() method (or some other algorithm).
straightQrCode (Optional)
Type: OpenCvSharpOutputArray
The optional output image containing rectified and binarized QR code

Return Value

Type: String

[Missing <returns> documentation for "M:OpenCvSharp.QRCodeDetector.Decode(OpenCvSharp.InputArray,System.Collections.Generic.IEnumerable{OpenCvSharp.Point2f},OpenCvSharp.OutputArray)"]

See Also