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
imgInputArraygrayscale or color (BGR) image containing QR code.
pointsIEnumerable<Point2f>Quadrangle vertices found by detect() method (or some other algorithm).
straightQrCodeOutputArrayThe optional output image containing rectified and binarized QR code