Class WeChatQRCode
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
WeChat QRCode includes two CNN-based models: A object detection model and a super resolution model. Object detection model is applied to detect QRCode with the bounding box. super resolution model is applied to zoom in QRCode when it is small.
public class WeChatQRCode : CvObject, IDisposable
- Inheritance
-
WeChatQRCode
- Implements
- Inherited Members
Constructors
- WeChatQRCode(string, string)
Initialize the WeChatQRCode. It includes two ONNX models: an object detection model and a super resolution model. Pass empty strings to create a detector without neural network models.
Methods
- DetectAndDecode(InputArray, out Point2f[][])
Both detects and decodes QR code. To simplify the usage, there is a only API: detectAndDecode
- DetectAndDecodeRaw(InputArray, out Mat[])
Both detects and decodes QR code. Returns each QR code's corner points as a raw Mat (4x2, CV_32FC1), which can be passed directly to other OpenCV functions.