跳至頁尾內容

其他的

探索 IronOCR 的更多功能—滿足您所有 OCR 需求的理想庫!

Icon Main related to 其他的
文件類型支援

1

多頁/多幀 TIFF 和 GIF

輕鬆處理以 TIFF 和 GIF 格式儲存的多頁文件。 IronOcr 一次操作即可讀取所有頁面或幀,省去了手動分割檔案的繁瑣步驟。

學習如何:讀取多幀/多頁 GIF 和 TIFF 文件
using IronOcr;

// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();

// Import TIFF/TIF
using var imageInput = new OcrImageInput("sample.tiff");

// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);
C#
2

PDF / PDF 串流

直接從 PDF 文件或內存流中準確提取文本,輕鬆處理原生 PDF 和掃描(基於圖像)PDF。

學習如何:在 .NET C# 中讀取 PDF 文件
using IronOcr;

// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();

// Add PDF
using var pdfInput = new OcrPdfInput("sample.pdf");

// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(pdfInput);
C#
3

圖片(jpg、png、bmp)

IronOCR 支援所有標準影像格式,例如 JPG、PNG 和 BMP。只需提供檔案路徑,IronOCR 即可處理其餘操作。

學習如何在 .NET C# 中讀取圖像
using IronOcr;

// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();

// Add image
using var imageInput = new OcrImageInput("Potter.png");

// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);
C#

Icon Main related to 其他的
性能增強劑

1

多執行緒 Tesseract OCR

建立高度可擴展、響應迅速的應用程序,全面支援並發處理。在不同執行緒中安全地同時處理多個文檔,實現高效能的伺服器端部署。

學習如何在 C# 中實作多執行緒 Tesseract OCR
using IronOcr;

var ocrTesseract = new IronTesseract();
using var ocrInput = new OcrInput();
ocrInput.LoadPdf("sample.pdf");

// Image processing is automatically multi-threaded
ocrInput.Deskew();

// OCR reading is automatically multi-threaded too
var ocrResult = ocrTesseract.Read(ocrInput);
C#
2

中止令牌

有效控制長時間運作的 OCR 任務。使用中止令牌可以優雅地暫停或取消進程,這對於資源管理或實現使用者可取消的操作非常有用。

學習如何使用C# Tesseract 中止令牌
using IronOcr;
using System.Threading;

// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
using var ocrInput = new OcrInput();
ocrInput.LoadPdf("sample.pdf");

// Starts a read on the PDF using IronOCR
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput);
Thread.Sleep(1000); // Time passes...

// Cancellation Example:
ocrRead.Cancel();
ocrRead.Wait();
C#
3

暫停

防止應用程式因處理複雜或損壞的檔案而卡死。為所有 OCR 流程設定特定的逾時時間,以確保更好的資源管理和系統穩定性。

學習如何實現: C# Tesseract 逾時
using IronOcr;

int cancel_time = 1000;

// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
var ocrInput = new OcrInput();
ocrInput.LoadPdf("large-report.pdf");

// Starts a read on the PDF using IronOCR with specified cancel time
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput, cancel_time);
C#
4

OCR流程追蹤

即時監控 OCR 操作的進度,從 0% 到 100%。這樣,您可以透過進度條向使用者提供回饋,或更好地估算大型作業的完成時間。

學習如何在 .NET C# 中使用進度追蹤
using IronOcr;

var ocrTesseract = new IronTesseract();

// Subscribe to OcrProgress event
ocrTesseract.OcrProgress += (_, ocrProgressEventsArgs) =>
{
    Console.WriteLine("Progress(%) | Duration");
    Console.WriteLine("    " + ocrProgressEventsArgs.ProgressPercent + "%     | " + ocrProgressEventsArgs.Duration.TotalSeconds + "s");
};
using var input = new OcrInput();
input.LoadPdf("Experiences-in-Biodiversity-Research-A-Field-Course.pdf");
// Progress events will fire during the read operation
var result = ocrTesseract.Read(input);
C#
準備好開始了嗎?
Nuget 下載 5,299,091 | 版本: 2025.12 剛剛發布