using IronQr;
using IronSoftware.Drawing;
using System;
using System.Collections.Generic;
// Open the asset to read a QR Code from
var inputBmp = AnyBitmap.FromFile("IMAGE_TO_READ.png");
// Load the asset into QrImageInput
QrImageInput imageInput = new QrImageInput(inputBmp);
// Create a QR Reader object
QrReader reader = new QrReader();
// Read the Input an get all embedded QR Codes
IEnumerable<QrResult> results = reader.Read(imageInput);
// Use and Store the information as required
foreach (QrResult result in results)
{
// String value of the QR Code
Console.WriteLine(result.Value);
// URI value of the QR Code
Console.WriteLine(result.Url);
// Coordinates of the QR Code
foreach (IronSoftware.Drawing.PointF point in result.Points)
{
Console.WriteLine($"{point.X}, {point.Y}");
}
}
Install-Package IronQR
读取高级二维码
我们致力于提供最先进的二维码读取体验,并通过集成最先进的机器学习 (ML) 模型来体现这一承诺。 通过采用最先进的 ML 技术,我们将二维码阅读提升到了一个新的水平。 我们先进的机器学习模型使您的应用程序能够以无与伦比的准确性和效率解码二维码,即使在具有挑战性的场景下也是如此。 无论是从图像、视频还是实时摄像机画面中读取 QR 码,我们的 ML 解决方案都能确保您快速、可靠地获取所需信息。 这项创新不仅简化了数据提取,而且还提高了安全性,因为它能够区分合法的二维码和潜在的威胁。 借助我们的机器学习模型,您可以确信您的二维码读取能力处于技术前沿,为您的用户提供流畅可靠的体验。