跳至頁尾內容

文件閱讀

利用 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.Co/nfiguration.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# 中使用 Read Photo
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# 中使用 Read Screenshot
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 下載 5,896,332 | 版本: 2026.5 just released
Still Scrolling Icon

還在往下捲動嗎?

想要快速確認成果嗎? PM > Install-Package IronOcr
執行範例 觀看您的圖片轉為可搜尋文字。

鋼鐵支援團隊

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