自定义二维码读取模式选项
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 Download
PM > Install-Package IronQR
自定义二维码读取模式选项

自定义二维码读取模式选项

我们致力于提供最先进的ML)模型的集成得到了体现。 通过采用尖端的QR代码读取提升到了新的水平。 我们先进的QR代码,即便在具有挑战性的场景中。 无论您是在从图像、视频还是实时相机中读取ML驱动解决方案都确保您能够快速可靠地获取所需信息。 这一创新不仅简化了数据提取,还增强了安全性,因为它可以区分合法的QR代码和潜在威胁。 有了我们的QR代码读取能力处于技术的前沿,为用户提供无缝和值得信赖的体验。

探索如何使用 IronQR 从图像中读取二维码。
在 GitHub 上查看

准备开始了吗?

Nuget Downloads 80,612版本:2026.11刚刚发布