Class QrReader
Provides functionality to read QR codes with optional settings.
Inheritance
Namespace: IronQr
Assembly: IronQr.dll
Syntax
public class QrReader : Object
Constructors
QrReader()
Initializes a new instance of the QrReader class.
Declaration
public QrReader()
Methods
Read(IQrInput)
Detects and reads all QR code(s) in the frame(s) of the IQrInput provided and wraps all results in a QrResult with coordinates and value information.
Declaration
public IEnumerable<QrResult> Read(IQrInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| IQrInput | input | Wrapped frame bitmap |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<QrResult> | Object with 4 IronSoftware.Drawing.PointF coordinate values, and QR Code value |
Remarks
If using the IronQr.Slim package alone without IronQr, the operation will not use the Machine Learning model to detect QR Codes resulting in a longer, lower quality read.
ReadAsync(IQrInput)
Detects and reads all QR code(s) in the frame(s) of the IQrInput provided asynchronously and wraps all results in a QrResult with coordinates and value information.
Declaration
public Task<IEnumerable<QrResult>> ReadAsync(IQrInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| IQrInput | input | Wrapped frame bitmap |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<QrResult>> | A task that represents the asynchronous read operation. The value of the TResult parameter contains an object with 4 IronSoftware.Drawing.PointF coordinate values, and QR Code value. |
Remarks
If using the IronQr.Slim package alone without IronQr, the operation will not use the Machine Learning model to detect QR Codes resulting in a longer, lower quality read.