跳至頁尾內容

文件閱讀

準確提取發票和報告中的文字和資料,使用IronOCR並更快地構建功能。

Icon Main related to 文件閱讀
文件閱讀

1

閱讀掃描文件

準確地將物理文件和基於圖像的PDF數位化為機器可讀文字。非常適合建立可搜尋的檔案、從紙質表單中自動錄入資料,並使掃描內容可存取和可索引。我們的引擎在處理常見掃描缺陷方面表現出色。

瞭解如何使用:在C#中閱讀掃描文件
using IronOcr;
using System;

// Instantiate OCR engine
var ocr = new IronTesseract();

// Configure OCR engine
using var input = new OcrInput();
input.LoadImage("potter.tiff");

// Perform OCR
OcrResult result = ocr.ReadDocument(input);
Console.WriteLine(result.Text);
C#
2

閱讀發票文件

通過智能地從發票中提取結構化資料來自動化您的應付賬款工作流程。超越簡單的文字提取,捕捉關鍵值對,如發票編號、到期日期、總金額和供應商名稱,即使在不同的佈局和模板中也是如此。

瞭解如何使用:在文件中閱讀複雜表格
using IronOcr;

// Instantiate OCR engine
var ocr = new IronTesseract();

// Enable table detection
ocr.Configuration.ReadDataTables = true;
using var input = new OcrPdfInput("sample.pdf");
var result = ocr.Read(input);

// Retrieve the data
var table = result.Tables[0].DataTable;

// Print the retrieved item to the console
Console.WriteLine($"The first item in the table is: {result.Tables[0].DataTable.Rows[0][0]}");
C#
3

閱讀照片

將智能手機照片和相機圖像轉換為可用的文字。非常適合捕獲收據進行開支追蹤的移動應用程式、數位化白板筆記、從產品標籤中提取資訊或從街道標誌和海報中讀取文字。

瞭解如何使用:在C#中閱讀照片
using IronOcr;

var ocr = new IronTesseract();
using var inputPhoto = new OcrInput();
inputPhoto.LoadImageFrame("ocr.tiff", 0);

// Read photo
OcrPhotoResult result = ocr.ReadPhoto(inputPhoto);

// Extract the text in the first region
string textinregion = result.TextRegions[0].TextInRegion;

// Print the text in the first region 
Console.WriteLine($"Full Scnned Photo Text: {textinregion}");
C#
4

閱讀截圖

從應用程式窗口、使用者介面或網頁內容立即捕獲和處理螢幕文字。通過讀取它們的UI元素無縫整合其他應用程式。

瞭解如何使用:在C#中閱讀截圖
using IronOcr;
using System;
using System.Linq;

// Instantiate OCR engine
var ocr = new IronTesseract();
using var inputScreenshot = new OcrInput();
inputScreenshot.LoadImage("screenshotOCR.png");

// Perform OCR
OcrPhotoResult result = ocr.ReadScreenShot(inputScreenshot);

// Output screenshot information
Console.WriteLine(result.Text);
C#
準備開始了嗎?
Nuget 下載 6,136,090 | 版本: 2026.7 剛剛發布
Still Scrolling Icon

還在滾動?

想要快速證明? PM > Install-Package IronOcr
執行範例 觀看您的圖像轉變為可搜尋文字。

Iron 支援團隊

我們線上24小時,每週5天。
聊天
電子郵件
給我打電話