Search Results for

    Show / Hide Table of Contents

    Class QrScanMode

    Define how IronQR scans and detects QR Codes in an image to read. By default, a ML model will scan the image, and a basic second scan will be run if the ML model finds none.

    Inheritance
    System.Object
    QrScanMode
    Namespace: IronQr.Enum
    Assembly: IronQr.dll
    Syntax
    public sealed class QrScanMode : Enum

    QrScanMode sets how IronQR detects QR codes in an image, assigned to QrImageInput.QrScanMode or the IQrInput it implements. Auto, the default, runs a machine-learning detection model and falls back to a basic scan, which handles awkward angles and noisy photos. OnlyDetectionModel forces the ML model alone, and OnlyBasicScan uses the fast classic scan for clean, straight-on images where the model's overhead is unnecessary. The scan modes how-to compares them, and the machine-learning read example shows the model in use.

    var input = new QrImageInput(bitmap, QrScanMode.Auto);

    Fields

    Auto

    Attempt to find QR Codes using the Machine Learning model, and fallback to a basic brute-force read if none are found.

    Declaration
    public const QrScanMode Auto
    Field Value
    Type Description
    QrScanMode

    OnlyBasicScan

    Only attempt to find QR Codes using the basic brute-force read (can be run with IronQR.Slim alone).

    Declaration
    public const QrScanMode OnlyBasicScan
    Field Value
    Type Description
    QrScanMode

    OnlyDetectionModel

    Only attempt to find QR Codes using the Machine Learning model.

    Declaration
    public const QrScanMode OnlyDetectionModel
    Field Value
    Type Description
    QrScanMode

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with NuGet