IronOCR 操作指南 条形码/QR(超过20种格式) How to Read Barcodes and QR Codes Chaknith Bin 已更新:六月 10, 2025 Download IronOCR NuGet 下载 DLL 下载 Windows 安装程序 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English 使用 OCR 技术读取条形码和 QR 码,在这些代码是印刷或数字文档的一部分并需要自动处理的情况下非常有用。 它可以实现自动化并从多种来源提取数据,是企业和开发人员的多功能解决方案。 as-heading:2(快速入门:立即从 PDF 中读取 BarCode)</em 只需一个设置即可启用条形码检测,使用 IronOCR 可以毫不费力地扫描 PDF。 下面的代码展示了如何在几行代码中打开条形码读取、处理 PDF 并立即检索解码值。 Get started making PDFs with NuGet now: Install IronOCR with NuGet Package Manager PM > Install-Package IronOcr Copy and run this code snippet. var result = new IronOcr.IronTesseract() { Configuration = new IronOcr.TesseractConfiguration { ReadBarCodes = true } }.Read(new IronOcr.OcrPdfInput("document.pdf")); foreach(var bc in result.Barcodes) Console.WriteLine(bc.Value); Deploy to test on your live environment Start using IronOCR in your project today with a free trial Free 30 day Trial 最小工作流程(5 个步骤)下载一个 C# 库来读取条形码和二维码。 导入目标图像和 PDF 文档。 通过将 ReadBarCodes 属性设置为 true 来启用条形码读取。 使用 Read 方法像往常一样执行 OCR。 输出检测到的文本和 BarCode 值。 输出检测到的文本和条形码值。