自訂 QR 碼讀取模式選項
using IronQr;
using IronSoftware.Drawing;
using IronQr.Enum;
using System.Collections.Generic;

var inputBmp = AnyBitmap.FromFile("IMAGE_TO_READ.png");

// Use Auto => Machine Learning Scan
// Careful Scan => Useful for scanning documents slowly and carefully
QrImageInput scan_ML_and_normal = new QrImageInput(inputBmp, QrScanMode.Auto);
IEnumerable<QrResult> results1 = new QrReader().Read(scan_ML_and_normal);

// Use Machine Learning Scan
// High Speed => Useful for scanning frames from a camera
QrImageInput scan_ML_only = new QrImageInput(inputBmp, QrScanMode.OnlyDetectionModel);
IEnumerable<QrResult> results2 = new QrReader().Read(scan_ML_only);

// Use Basic Scan without Machine Learning
QrImageInput scan_normal_only = new QrImageInput(inputBmp, QrScanMode.OnlyBasicScan);
IEnumerable<QrResult> results3 = new QrReader().Read(scan_normal_only);
NuGet 下載
PM > Install-Package IronQR
自訂 QR 碼讀取模式選項

自訂 QR 碼讀取模式選項

我們致力於提供最先進的ML模型,這一承諾體現在我們整合了尖端的機器學習(ML)模型中。 通過採用尖端的ML技術,我們將QR程式碼讀取提升到了新的水平。 我們的先進ML模型使您的應用程式可以在具挑戰性的情況下,以準確和高效的方式解碼QR碼。 無論您是從圖片、視頻或即時相機畫面讀取QR碼,我們的ML-支援解決方案都保證您能夠迅速可靠地獲取所需信息。 這項創新簡化了資料擷取。 有了我們的ML模型,您可以相信您的QR程式碼讀取能力處於技術前沿,為用戶提供流暢和可靠的體驗。

探索如何使用 IronQR 從影像中讀取二維碼。
在 GitHub 查看

準備好開始了嗎?

NuGet 下載次數 83,364版本:2026.11剛剛發布