在生產環境中進行無水印測試。
無論在何處需要,它都能正常運作。
獲得 30 天完整功能產品試用期。
幾分鐘就能安裝運作。
產品試用期間,您可以隨時聯絡我們的支援工程團隊。
using IronOcr;
using System;
var ocrTesseract = new IronTesseract();
ocrTesseract.Language = OcrLanguage.Arabic;
using (var ocrInput = new OcrInput())
{
ocrInput.LoadImage(@"images\arabic.gif");
var ocrResult = ocrTesseract.Read(ocrInput);
Console.WriteLine(ocrResult.Text);
}
// Example with a Custom Trained Font Being used:
var ocrTesseractCustomerLang = new IronTesseract();
ocrTesseractCustomerLang.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
ocrTesseractCustomerLang.AddSecondaryLanguage(OcrLanguage.EnglishBest);
using (var ocrInput = new OcrInput())
{
ocrInput.LoadPdf(@"images\mixed-lang.pdf");
var ocrResult = ocrTesseractCustomerLang.Read(ocrInput);
Console.WriteLine(ocrResult.Text);
}Install-Package IronOcr
IronOCR 支援 125 種國際語言。 除了預設安裝的英文之外,還可以透過 NuGet 將其他語言套件新增至您的 .NET 專案中,或從我們的語言頁面下載其他語言套件。 大多數語言都提供快速、標準(建議)和最佳品質三種版本。 最佳品質選項可能提供更準確的結果,但處理時間也會更慢。IronOCR 語言支持
using IronOcr;
using IronSoftware.Drawing;
// We can delve deep into OCR results as an object model of
// Pages, Barcodes, Paragraphs, Lines, Words and Characters
// This allows us to explore, export and draw OCR content using other APIs/
var ocrTesseract = new IronTesseract();
ocrTesseract.Configuration.ReadBarCodes = true;
using var ocrInput = new OcrInput();
var pages = new int[] { 1, 2 };
ocrInput.LoadImageFrames("example.tiff", pages);
OcrResult ocrResult = ocrTesseract.Read(ocrInput);
foreach (var page in ocrResult.Pages)
{
// Page object
int PageNumber = page.PageNumber;
string PageText = page.Text;
int PageWordCount = page.WordCount;
// null if we dont set Ocr.Configuration.ReadBarCodes = true;
OcrResult.Barcode[] Barcodes = page.Barcodes;
AnyBitmap PageImage = page.ToBitmap(ocrInput);
double PageWidth = page.Width;
double PageHeight = page.Height;
double PageRotation = page.Rotation; // angular correction in degrees from OcrInput.Deskew()
foreach (var paragraph in page.Paragraphs)
{
// Pages -> Paragraphs
int ParagraphNumber = paragraph.ParagraphNumber;
string ParagraphText = paragraph.Text;
AnyBitmap ParagraphImage = paragraph.ToBitmap(ocrInput);
int ParagraphX_location = paragraph.X;
int ParagraphY_location = paragraph.Y;
int ParagraphWidth = paragraph.Width;
int ParagraphHeight = paragraph.Height;
double ParagraphOcrAccuracy = paragraph.Confidence;
OcrResult.TextFlow paragrapthText_direction = paragraph.TextDirection;
foreach (var line in paragraph.Lines)
{
// Pages -> Paragraphs -> Lines
int LineNumber = line.LineNumber;
string LineText = line.Text;
AnyBitmap LineImage = line.ToBitmap(ocrInput);
int LineX_location = line.X;
int LineY_location = line.Y;
int LineWidth = line.Width;
int LineHeight = line.Height;
double LineOcrAccuracy = line.Confidence;
double LineSkew = line.BaselineAngle;
double LineOffset = line.BaselineOffset;
foreach (var word in line.Words)
{
// Pages -> Paragraphs -> Lines -> Words
int WordNumber = word.WordNumber;
string WordText = word.Text;
AnyBitmap WordImage = word.ToBitmap(ocrInput);
int WordX_location = word.X;
int WordY_location = word.Y;
int WordWidth = word.Width;
int WordHeight = word.Height;
double WordOcrAccuracy = word.Confidence;
foreach (var character in word.Characters)
{
// Pages -> Paragraphs -> Lines -> Words -> Characters
int CharacterNumber = character.CharacterNumber;
string CharacterText = character.Text;
AnyBitmap CharacterImage = character.ToBitmap(ocrInput);
int CharacterX_location = character.X;
int CharacterY_location = character.Y;
int CharacterWidth = character.Width;
int CharacterHeight = character.Height;
double CharacterOcrAccuracy = character.Confidence;
// Output alternative symbols choices and their probability.
// Very useful for spellchecking
OcrResult.Choice[] Choices = character.Choices;
}
}
}
}
}Install-Package IronOcr
IronOCR 使用 Tesseract 5 掃描每一頁,並傳回一個進階結果物件。 這包含位置資料、圖像、文字、統計置信度、替代符號、字體名稱、字號裝飾、字體粗細以及每個元素的位置:
段落Word
無論是護照頁、發票、銀行對帳單、郵件、名片或收據,光學字元辨識 (OCR) 都是一個基於模式識別、電腦視覺和機器學習的研究領域。企業跨部門利用 OCR 技術提取會計和財務系統、業務數位化、企業內容管理和數據報告系統中的文字。
除了創造其他成功案例之外,IronOCR 還透過其原生 C# OCR 庫 IronOCR 為 Google Tesseract 和 Microsoft 2021 Azure 認知服務增添價值。
如果您希望以 99% 的準確率轉換真實世界的圖片,那麼請繼續閱讀,了解 IronOCR 如何幫助您建立高效、準確、可擴展且幾乎與人類一樣的光學字元辨識應用程式。
由於各種應用程式介面 (API) 聲稱具有極高的安全保障,光學字元辨識 (OCR) 被認為是一個成熟的技術。然而,各種產品往往不夠完善且不夠精確,在實際應用上經常失效。同樣,Tesseract OCR 也僅適用於機器列印的高解析度完美文字。
聽起來不錯?
現實世界並非總是擁有完美無瑕、高解析度的印刷體和手寫文字。 IronOCR 可以有效解決旋轉、傾斜、低 DPI、背景雜訊以及所有數位缺陷的困擾,包括從影像檔案中提取手寫文字。我們確保產生準確率高達 99.8% 至 100% 的可搜尋文檔,並支援跨平台,包括 Windows、Linux、macOS、Microsoft Azure、AWS 和 Docker。 C# 開發人員選擇IronOCR而非(基礎的)Tesseract OCR 是有原因的-一切都為了創造價值。
裝備最好的!
除了上述功能外,IronOCR 還可讓您快速處理影像文件。不僅如此,IronOCR API 的功能還包括以下幾個面向:
從原生 .dll 或 .exe 安裝過渡到單一資料來源-使用單一的原生 .NET 元件庫進行開發,該元件庫採用簡單的 C# API,支援:
IronOCR API 的強大之處遠不止於此;您可以繼續探索我們更先進的技術特性。我們透過開發可靠的解決方案,逐步降低業務複雜性,簡化文件處理應用程序,並透過提供業界領先的嵌入式功能,最大限度地提高業務收入:
我們的光學字元辨識流程始於自動影像預處理,旨在增強影像文件,從而提高擷取回應率。 IronOCR 為您的工作增添價值,因為它使用戶能夠將範例基礎圖像檔案提取為最佳版本。 IronOCR 功能全面:
由於 IronOCR 服務在 300DPI(每英吋點數)影像檔案上效果最佳,因此任何明顯超出 200-300 DPI 的影像都會重新取樣以適應目標範圍。
這意味著將 600 DPI 影像下採樣到 300 DPI 或將 100 DPI 影像上採樣到 200 DPI,置信度為 99%。
由於 IronOCR 認知服務設計用於處理單色影像,因此任何彩色或灰階影像都會轉換為單色影像,並採用自適應二值化演算法。
此演算法比較區域內的像素密度,以確定用於將像素轉換為單色的閾值。
IronOCR 會尋找文字行和字元模式,以自動校正輸入影像資源的傾斜並旋轉到所需的方向。
IronOCR 可自動分析影像檔案中是否有雜訊及其數量。雜訊本質上是掃描影像上的“斑點”。我們的自適應演算法會根據雜訊顆粒的大小來去除雜訊。
樣本影像檔案預處理完成後,IronOCR 會將輸入影像檔案分成不同的處理區域。
另一個預處理階段是將參考影像分割成不同的邏輯區域。 IronOCR 首先以空白和圖案定位影像中的文字和圖片;然後將文字區域與影像區域分開。
然後,文字被分割成段落、列和文字區塊等區域。圖像和剩餘的非文字像素會被識別出來,在文字辨識過程中被忽略,並包含在智慧輸出中。 IronOCR 隨後透過網格線和文字區塊將文字區域標記為表格。
執行多個相互關聯的步驟,將像素區塊轉換為使用者可以搜尋的單行文字。這包括字元分割、自適應分類、字典檢索以及其他有助於提取最佳文本的相關過程。
借助 IronOCR API 服務,我們已使用多種語言的多個資料檔案範例對我們的工具進行了測試,測試內容包括單字層級、符號準確度和 Microsoft Office 格式的佈局保留。雖然某些參數會自動測試,但其他參數則需要人工檢查。
IronOCR 可讓您為純文字字串新增跨平台 OCR 功能,支援多種輸入格式,方便您進行搜尋。為了提升您的 IronOCR 使用效率,請先閱讀我們的免費教學文檔,它將指導您如何使用 IronOCR。立即下載我們的 NuGet 套件安裝程序,使用免費試用金鑰進行體驗,或聯絡我們的全天候專屬支援團隊。無論您的團隊規模如何,我們都提供終身許可,滿足您的各種需求。
查看許可證





C# OCR ASP.NET




Iron 團隊在 .NET 軟體組件市場擁有超過 10 年的經驗。