觀看David Jones, Agorus, 使用Iron Suite創造新效能
觀看Milan Jovanović使用IronPDF
觀看我們的團隊產品演示
改進低質量掃描和照片的輸入。使用我們的預處理濾波器來清理、校正並增強困難圖像,以取得最大 OCR 精度。
直接在 IronOCR 中輕鬆將輸入的資料二值化,將影像轉換為銳利的黑白版本。此濾鏡可有效地將文字從複雜的背景中分離出來,減少雜訊,使文字擷取更容易、更可靠。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("sample.jpg"); // Apply binarize affect imageInput.Binarize(); // Export the modified image imageInput.SaveAsImages("binarize.jpg");
將彩色影像轉換為灰階 - 這是準備影像以使用更先進的預處理篩選器的重要步驟。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("sample.jpg"); // Apply grayscale affect imageInput.ToGrayScale(); // Export the modified image imageInput.SaveAsImages("grayscale.jpg");
取代影像中特定的顏色範圍,讓您可以在 OCR 之前移除水印、彩色背景或其他令人分心的元素。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("sample.jpg"); IronSoftware.Drawing.Color currentColor = new IronSoftware.Drawing.Color("#DB645C"); IronSoftware.Drawing.Color newColor = IronSoftware.Drawing.Color.DarkCyan; // Replace color imageInput.ReplaceColor(currentColor, newColor, 80); // Export the modified image imageInput.SaveAsImages("replaceColor");
加粗圖像中的字元,這有助於連接文字中的斷線,並提高對模糊或細小字體的識別。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("sample.jpg"); // Apply Dilate filter imageInput.Dilate(); // Export filtered image imageInput.SaveAsImages("dilate.jpg");
將圖像中的字元變薄,對於分隔接觸或出血的字元非常有用。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("sample.jpg"); // Apply Erode filter imageInput.Erode(); // Export filtered image imageInput.SaveAsImages("erode.jpg");
自動偵測並拉直歪斜或傾斜的影像,大幅提升不完美掃描的 OCR 準確度。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("paragraph_skewed.png"); // Apply Deskew filter imageInput.Deskew();
以程式化的方式任意旋轉影像,以確保文字的方向對 OCR 引擎而言是正確的。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("paragraph_skewed.png"); // Rotate the image 180 degrees clockwise imageInput.Rotate(180); // Export the modified image imageInput.SaveAsImages("rotate");
自動判斷頁面方向(0、90、180、270 度),對 OCR 之前的方向修正非常有用。即使文件被顛倒掃描時,仍可確保高準確性。
using IronOcr; using var input = new OcrInput(); // Load PDF document input.LoadPdf("Clockwise90.pdf"); // Detect page rotation var results = input.DetectPageOrientation(); // Ouput result foreach(var result in results) { Console.WriteLine(result.PageNumber); Console.WriteLine(result.HighConfidence); Console.WriteLine(result.RotationAngle); }
將影像調整至 OCR 的最佳解析度,大幅提升低解析度原始檔案的精確度。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("paragraph_skewed.png"); // Apply scale imageInput.Scale(70); // Export the modified image imageInput.SaveAsImages("rotate");
針對低解析度影像或元資料遺失的掃描,手動設定每英吋點數 (DPI)。提供 DPI 值可引導 OCR 引擎,並大幅提升辨識品質。
using IronOcr; using System; var ocrTesseract = new IronTesseract(); using var ocrInput = new OcrInput(); ocrInput.TargetDPI = 300; ocrInput.LoadImage(@"images\image.png"); var ocrResult = ocrTesseract.Read(ocrInput); Console.WriteLine(ocrResult.Text);
透過演算法改善低解析度影像的銳利度與清晰度,從模糊或像素化的輸入中拯救文字。
using IronOcr; // Instantiate IronTesseract IronTesseract ocrTesseract = new IronTesseract(); // Add image using var imageInput = new OcrImageInput("sample.jpg"); // Apply enhance resolution filter imageInput.EnhanceResolution(); // Export filtered image imageInput.SaveAsImages("sharpen.jpg");
使用單一的智慧型方法套用一連串經過策劃的預處理濾鏡。篩選精靈會自動分析輸入的影像,並套用最佳的修正順序,以達到最佳的 OCR 結果。
using IronOcr; var ocrTesseract = new IronTesseract(); // WIZARD - If you are unsure which filters to use, // use the debug-wizard to test all combinations: string codeToRun = OcrInputFilterWizard.Run(@"images\image.png", out double confidence, ocrTesseract); Console.WriteLine($"Confidence: {confidence}"); Console.WriteLine(codeToRun);
只針對影像中包含文字的特定區域,節省處理時間。只需定義一個矩形區域,即可從表格、表格或雜亂的背景中隔離並擷取文字。
using IronOcr; using IronSoftware.Drawing; var ocrTesseract = new IronTesseract(); using var ocrInput = new OcrInput(); var ContentArea = new Rectangle(x: 215, y: 1250, width: 1335, height: 280); ocrInput.LoadImage("img/example.png", ContentArea); var ocrResult = ocrTesseract.Read(ocrInput); Console.WriteLine(ocrResult.Text);
Install-Package IronOcr
無需信用卡
試用表單已提交成功。您的試用密鑰應該在電子郵件裡。如果沒有,請聯繫support@ironsoftware.com
您的試用密鑰應該在電子郵件裡。如果沒有,請聯繫support@ironsoftware.com
在生產環境中測試而不帶水印。適用於您所需的任何地方。
獲得 30 天完整功能產品。幾分鐘內即可運行。
在您的產品試用期間全面訪問我們的支持技術團隊
產品與其關鍵功能的即時展示
獲取項目特定的功能建議
我們會回答您所有的問題,以確保您掌握所有需要的資訊。(絕無承諾)。
請檢查您的電子郵件以取得試用授權金鑰。
如果您沒有收到電子郵件,請啟動 support@ironsoftware.com
預約無需承諾的諮詢
完成以下表單或發送電子郵件至 sales@ironsoftware.com
您的詳細信息將始終保密。
預訂 30 分鐘的個人演示。
無須合約、無須卡號、無任何長期綁約。
版權所有 © Iron Software 2013-2025