C# 圖像校正濾鏡以改善OCR讀取
IronOCR 提供了五個基本的影像校正濾鏡(sharpen、enhance resolution、denoise、dilate 和 erode),這些濾鏡在進行文字擷取之前,預處理圖像以顯著提高OCR準確性,增強文字清晰度並減少雜訊。
使用 IronOCR 的 OcrImageInput 就能用一行代碼來銳化模糊影像。 本範例展示影像增強以達到精確的 OCR。
-
1使用 IronOCR 安裝 NuGet Package Manager
-
2複製並運行這段程式碼。
new IronOcr.OcrImageInput("sample.png").Sharpen().SaveAsImages("output.png");New IronOcr.OcrImageInput("sample.png").Sharpen().SaveAsImages("output.png")New IronOcr.OcrImageInput("sample.png").Sharpen().SaveAsImages("output.png") -
3部署到您的生產環境進行測試
立即在您的項目中開始使用 IronOCR,並使用 免費試用
最小工作流程(5 個步驟)
- 下載使用濾鏡進行影像校正的 C# 程式庫
- 導入 PDF 文檔和圖像以進行閱讀
- 應用所需的過濾器,如銳化、提升分辨率、去噪、膨脹和腐蝕
- 導出校正後的影像以供查看
- 使用
Read方法進行 OCR 處理
我如何應用銳化濾鏡?
此濾鏡可增加影像邊緣的對比度,創造出更明確的文字邊界。 它能改善文字的清晰度,使字元辨識更準確。
為什麼銳化能提高 OCR 準確性?
銳化濾鏡透過增強邊緣對比,強調文字與背景之間的邊界。字元識別演算法需要清晰、鮮明的字母形狀才能正常運作。 帶有柔和邊緣的模糊文字——常見於掃描文件或低品質照片中——會導致 OCR 引擎錯誤識別字元邊界。 要了解更多關於 OCR 的最佳影像處理,請查看我們的指導 OCR 影像優化濾鏡。
要應用銳化濾鏡,請調用 Sharpen 方法於 OcrImageInput 對象中:
using IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Add image
using var imageInput = new OcrImageInput("sample.jpg");
// Apply sharpen filter
imageInput.Sharpen();
// Export filtered image
imageInput.SaveAsImages("sharpen.jpg");using IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Add image
using var imageInput = new OcrImageInput("sample.jpg");
// Apply sharpen filter
imageInput.Sharpen();
// Export filtered image
imageInput.SaveAsImages("sharpen.jpg");Imports IronOcr
' Instantiate IronTesseract
Private ocrTesseract As New IronTesseract()
' Add image
Private imageInput = New OcrImageInput("sample.jpg")
' Apply sharpen filter
imageInput.Sharpen()
' Export filtered image
imageInput.SaveAsImages("sharpen.jpg")Imports IronOcr
' Instantiate IronTesseract
Private ocrTesseract As New IronTesseract()
' Add image
Private imageInput = New OcrImageInput("sample.jpg")
' Apply sharpen filter
imageInput.Sharpen()
' Export filtered image
imageInput.SaveAsImages("sharpen.jpg")我什麼時候應該使用銳化濾鏡?
對於稍微失焦的影像、文字邊緣較軟的掃描文件,或在光線不足的情況下拍攝的照片,請使用銳化處理。 避免將清晰的文字過度銳化,因為這樣會產生假象並降低精確度。 對於極其模糊的掃描,將銳化與其他濾鏡結合使用或查看我們的指導 修復低品質掃描和影像。
使用 SaveAsImages 方法導出濾鏡後的影像。 以下是翻譯前後的比較。

前

後
我如何提高分辨率以獲得更好的 OCR?
此濾鏡可增加像素密度,提高銳利度和清晰度。 它可以幫助 OCR 引擎更準確地讀取低解析度影像中的文字。
OCR 應該以什麼 DPI 為目標?
OCR 引擎在 300 DPI(每英吋點數)下效能最佳。 較低的解析度會造成字元辨識錯誤; 較高的解析度會減慢處理速度,卻不會提高精確度。 IronOCR 的增強濾鏡可將影像智慧地提升至最佳 DPI 水準。 如需詳細指導,請參閱我們的 DPI 設定指導。
調用 EnhanceResolution 方法來應用此濾鏡。 預設目標為 225 DPI:
using IronOcr;
// Create OCR input
var imageInput = new OcrImageInput("low-res-scan.jpg");
// Apply enhance resolution filter with default 225 DPI
imageInput.EnhanceResolution();
// Or specify a custom DPI
imageInput.EnhanceResolution(300);
// Combine with OCR reading
var ocr = new IronTesseract();
var result = ocr.Read(imageInput);
Console.WriteLine($"Extracted text: {result.Text}");using IronOcr;
// Create OCR input
var imageInput = new OcrImageInput("low-res-scan.jpg");
// Apply enhance resolution filter with default 225 DPI
imageInput.EnhanceResolution();
// Or specify a custom DPI
imageInput.EnhanceResolution(300);
// Combine with OCR reading
var ocr = new IronTesseract();
var result = ocr.Read(imageInput);
Console.WriteLine($"Extracted text: {result.Text}");Imports IronOcr
' Create OCR input
Dim imageInput As New OcrImageInput("low-res-scan.jpg")
' Apply enhance resolution filter with default 225 DPI
imageInput.EnhanceResolution()
' Or specify a custom DPI
imageInput.EnhanceResolution(300)
' Combine with OCR reading
Dim ocr As New IronTesseract()
Dim result = ocr.Read(imageInput)
Console.WriteLine($"Extracted text: {result.Text}")Imports IronOcr
' Create OCR input
Dim imageInput As New OcrImageInput("low-res-scan.jpg")
' Apply enhance resolution filter with default 225 DPI
imageInput.EnhanceResolution()
' Or specify a custom DPI
imageInput.EnhanceResolution(300)
' Combine with OCR reading
Dim ocr As New IronTesseract()
Dim result = ocr.Read(imageInput)
Console.WriteLine($"Extracted text: {result.Text}")分辨率增強最重要的時候是什麼時候?
解析度的提升對於以下方面至關重要:
- 以螢幕解析度 (72-96 DPI) 擷取的螢幕截圖
- 從網際網路下載的網頁影像
- 以低解析度掃描的歷史文件
- 傳真傳輸本身解析度低
OCR Tesseract 影像 DPI 示例提供了有關 DPI 如何影響不同文件類型準確性的見解。

前

後
我如何從影像中去除噪音?
去噪濾鏡可減少影像中不想要的人工影像。 降低雜訊可將文字與背景干擾隔離,產生更乾淨、更精準的 OCR 結果。
2x2 和 3x3 形態學有什麼區別?
形態大小決定去噪強度。 2x2 形態學應用溫和的降噪技術,在保留精細文字的同時,將人工雜訊降到最低。 3x3 形態可為嚴重退化的文件提供積極的雜訊去除,但可能會影響非常小的文字。
要應用去噪濾鏡,請使用 DeNoise 方法。 預設 morphology 為 2x2。若要使用 3x3 形態,請傳入 'true':
using IronOcr;
// Load noisy document
var imageInput = new OcrImageInput("noisy-scan.pdf");
// Apply denoise filter with default 2x2 morphology
imageInput.DeNoise();
// Apply stronger denoising with 3x3 morphology
imageInput.DeNoise(true);
// Combine with other filters for severely degraded images
imageInput.DeNoise()
.Sharpen()
.EnhanceResolution(300);
// Process with OCR
var ocr = new IronTesseract();
var result = ocr.Read(imageInput);
// Check confidence levels
foreach (var page in result.Pages)
{
Console.WriteLine($"Page confidence: {page.Confidence}%");
}using IronOcr;
// Load noisy document
var imageInput = new OcrImageInput("noisy-scan.pdf");
// Apply denoise filter with default 2x2 morphology
imageInput.DeNoise();
// Apply stronger denoising with 3x3 morphology
imageInput.DeNoise(true);
// Combine with other filters for severely degraded images
imageInput.DeNoise()
.Sharpen()
.EnhanceResolution(300);
// Process with OCR
var ocr = new IronTesseract();
var result = ocr.Read(imageInput);
// Check confidence levels
foreach (var page in result.Pages)
{
Console.WriteLine($"Page confidence: {page.Confidence}%");
}Imports IronOcr
' Load noisy document
Dim imageInput As New OcrImageInput("noisy-scan.pdf")
' Apply denoise filter with default 2x2 morphology
imageInput.DeNoise()
' Apply stronger denoising with 3x3 morphology
imageInput.DeNoise(True)
' Combine with other filters for severely degraded images
imageInput.DeNoise() _
.Sharpen() _
.EnhanceResolution(300)
' Process with OCR
Dim ocr As New IronTesseract()
Dim result = ocr.Read(imageInput)
' Check confidence levels
For Each page In result.Pages
Console.WriteLine($"Page confidence: {page.Confidence}%")
NextImports IronOcr
' Load noisy document
Dim imageInput As New OcrImageInput("noisy-scan.pdf")
' Apply denoise filter with default 2x2 morphology
imageInput.DeNoise()
' Apply stronger denoising with 3x3 morphology
imageInput.DeNoise(True)
' Combine with other filters for severely degraded images
imageInput.DeNoise() _
.Sharpen() _
.EnhanceResolution(300)
' Process with OCR
Dim ocr As New IronTesseract()
Dim result = ocr.Read(imageInput)
' Check confidence levels
For Each page In result.Pages
Console.WriteLine($"Page confidence: {page.Confidence}%")
Next如何知道我的影像是否需要去噪?
尋找這些噪音指標:
- 背景上有隨機的斑點或小點
- 因掃描不良而產生的鹽粒雜訊
- 高 ISO 攝影所產生的紋理
- 背景紋理來自回收紙
如需自動噪音檢測,請探索我們的 濾鏡精靈。

前

後
我如何使用膨脹濾鏡?
縮放可擴大影像中的明亮區域。 它可以加厚文字,使其更加突出,並讓 OCR 軟體更容易詮釋。
什麼時候應該對文字進行膨脹處理?
縮放對於在下列情況中發現的細小或斷裂的文字字元效果最佳:
- 墨水不一致的舊打字機文件
- 褪色的收據和熱感紙列印輸出
- 使用髮線字型的文件
- 影像格式的過度壓縮文字
縮放可填補字元間的小空隙,並強化薄弱的筆劃連接。 這可防止 OCR 引擎將斷字誤解為多個符號。
要應用膨脹濾鏡,請使用 Dilate 方法。 預設語態為 2x2; 為 3x3 傳 'true':
using IronOcr;
// Create OCR engine
var ocrTesseract = new IronTesseract();
// Apply dilate filter
var imageInput = new OcrImageInput("thin-text.jpg");
imageInput.Dilate();
// For more aggressive dilation
imageInput.Dilate(true);
// Practical example for faded receipt processing
var receiptInput = new OcrImageInput("faded-receipt.jpg");
receiptInput.Dilate()
.DeNoise()
.EnhanceResolution(300);
// Configure for better receipt reading
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock;
ocrTesseract.Configuration.ReadBarCodes = true;
// Perform OCR
var result = ocrTesseract.Read(receiptInput);using IronOcr;
// Create OCR engine
var ocrTesseract = new IronTesseract();
// Apply dilate filter
var imageInput = new OcrImageInput("thin-text.jpg");
imageInput.Dilate();
// For more aggressive dilation
imageInput.Dilate(true);
// Practical example for faded receipt processing
var receiptInput = new OcrImageInput("faded-receipt.jpg");
receiptInput.Dilate()
.DeNoise()
.EnhanceResolution(300);
// Configure for better receipt reading
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock;
ocrTesseract.Configuration.ReadBarCodes = true;
// Perform OCR
var result = ocrTesseract.Read(receiptInput);Imports IronOcr
' Create OCR engine
Dim ocrTesseract As New IronTesseract()
' Apply dilate filter
Dim imageInput As New OcrImageInput("thin-text.jpg")
imageInput.Dilate()
' For more aggressive dilation
imageInput.Dilate(True)
' Practical example for faded receipt processing
Dim receiptInput As New OcrImageInput("faded-receipt.jpg")
receiptInput.Dilate() _
.DeNoise() _
.EnhanceResolution(300)
' Configure for better receipt reading
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock
ocrTesseract.Configuration.ReadBarCodes = True
' Perform OCR
Dim result = ocrTesseract.Read(receiptInput)Imports IronOcr
' Create OCR engine
Dim ocrTesseract As New IronTesseract()
' Apply dilate filter
Dim imageInput As New OcrImageInput("thin-text.jpg")
imageInput.Dilate()
' For more aggressive dilation
imageInput.Dilate(True)
' Practical example for faded receipt processing
Dim receiptInput As New OcrImageInput("faded-receipt.jpg")
receiptInput.Dilate() _
.DeNoise() _
.EnhanceResolution(300)
' Configure for better receipt reading
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock
ocrTesseract.Configuration.ReadBarCodes = True
' Perform OCR
Dim result = ocrTesseract.Read(receiptInput)過度膨脹的常見問題是什麼?
過度擴張可能會導致:
- 相鄰字母合併時的字符出血
- 內部細節的遺失('e「或」8'的孔洞)
- 降低粗體文字的精確度
監控結果並作相應調整。 對於混合文字重量的文件,請選擇性使用我們的影像品質修正篩選器。

前

後
我如何應用侵蝕濾鏡?
侵蝕可以縮小圖像中明亮區域的大小,精細粗大或扭曲的字元並改善字元分離。
為什麼侵蝕有助於處理粗體文字?
侵蝕會使文字筆劃變細,並分開觸碰的字元。 此過濾器的優點在於
- 過墨印刷文件
- 字體出血的影印本
- 出現合併的粗體文字
- 低品質傳真傳輸
仔細的侵蝕可恢復字元間的分隔,並提高個別字母的辨識度,避免整個字詞被誤讀。
使用 Erode 方法來應用此濾鏡。 預設語態為 2x2; 為 3x3 傳 'true':
using IronOcr;
using System.Linq;
// Create OCR instance
var ocrTesseract = new IronTesseract();
// Load image with thick text
var imageInput = new OcrImageInput("thick-text.jpg");
// Apply erode filter
imageInput.Erode();
// Stronger erosion for heavily bleeding text
imageInput.Erode(true);
// Example: Processing a poor-quality photocopy
var photocopyInput = new OcrImageInput("thick-text-photocopy.pdf");
// Apply erosion followed by sharpening for best results
photocopyInput.Erode()
.Sharpen()
.EnhanceResolution(300);
// Configure OCR for better accuracy
ocrTesseract.Configuration.BlackListCharacters = "~`@#$%^&*()_+-={}[]|\\:\";<>?,./";
ocrTesseract.Configuration.WhiteListCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
var ocrResult = ocrTesseract.Read(photocopyInput);
// Extract with confidence check
var highConfidenceText = ocrResult.Blocks
.Where(b => b.Confidence > 90)
.Select(b => b.Text);using IronOcr;
using System.Linq;
// Create OCR instance
var ocrTesseract = new IronTesseract();
// Load image with thick text
var imageInput = new OcrImageInput("thick-text.jpg");
// Apply erode filter
imageInput.Erode();
// Stronger erosion for heavily bleeding text
imageInput.Erode(true);
// Example: Processing a poor-quality photocopy
var photocopyInput = new OcrImageInput("thick-text-photocopy.pdf");
// Apply erosion followed by sharpening for best results
photocopyInput.Erode()
.Sharpen()
.EnhanceResolution(300);
// Configure OCR for better accuracy
ocrTesseract.Configuration.BlackListCharacters = "~`@#$%^&*()_+-={}[]|\\:\";<>?,./";
ocrTesseract.Configuration.WhiteListCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
var ocrResult = ocrTesseract.Read(photocopyInput);
// Extract with confidence check
var highConfidenceText = ocrResult.Blocks
.Where(b => b.Confidence > 90)
.Select(b => b.Text);Imports IronOcr
Imports System.Linq
' Create OCR instance
Dim ocrTesseract = New IronTesseract()
' Load image with thick text
Dim imageInput = New OcrImageInput("thick-text.jpg")
' Apply erode filter
imageInput.Erode()
' Stronger erosion for heavily bleeding text
imageInput.Erode(True)
' Example: Processing a poor-quality photocopy
Dim photocopyInput = New OcrImageInput("thick-text-photocopy.pdf")
' Apply erosion followed by sharpening for best results
photocopyInput.Erode().Sharpen().EnhanceResolution(300)
' Configure OCR for better accuracy
ocrTesseract.Configuration.BlackListCharacters = "~`@#$%^&*()_+-={}[]|\\:"";<>?,./"
ocrTesseract.Configuration.WhiteListCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 "
Dim ocrResult = ocrTesseract.Read(photocopyInput)
' Extract with confidence check
Dim highConfidenceText = ocrResult.Blocks _
.Where(Function(b) b.Confidence > 90) _
.Select(Function(b) b.Text)Imports IronOcr
Imports System.Linq
' Create OCR instance
Dim ocrTesseract = New IronTesseract()
' Load image with thick text
Dim imageInput = New OcrImageInput("thick-text.jpg")
' Apply erode filter
imageInput.Erode()
' Stronger erosion for heavily bleeding text
imageInput.Erode(True)
' Example: Processing a poor-quality photocopy
Dim photocopyInput = New OcrImageInput("thick-text-photocopy.pdf")
' Apply erosion followed by sharpening for best results
photocopyInput.Erode().Sharpen().EnhanceResolution(300)
' Configure OCR for better accuracy
ocrTesseract.Configuration.BlackListCharacters = "~`@#$%^&*()_+-={}[]|\\:"";<>?,./"
ocrTesseract.Configuration.WhiteListCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 "
Dim ocrResult = ocrTesseract.Read(photocopyInput)
' Extract with confidence check
Dim highConfidenceText = ocrResult.Blocks _
.Where(Function(b) b.Confidence > 90) _
.Select(Function(b) b.Text)我如何平衡侵蝕與文字的可讀性?
找到正確的侵蝕程度需要仔細的測試:
- 從預設的 2x2 形態開始
- 在代表性的文件樣本上進行測試
- 檢查標點符號是否可見
- 確保細字型不會破損
對於混合文字權重的文件,請參閱我們的 高級配置選項。

前

後
我如何將濾鏡後的影像儲存為可搜尋的 PDF?
IronOCR 可讓您儲存已套用過濾器修改過的 PDF 檔案或其原始狀態。 SaveAsSearchablePdf 方法的第二個參數決定是否使用濾鏡來進行儲存。
保留濾鏡變更的好處是什麼?
保留過濾器變更提供了幾個優點:
- 建立更簡潔、更易閱讀的文件
- 保持不同文件批次的一致性
- 提供文字品質改善的視覺確認
- 可進行品質控制比較
建立可搜尋的 PDF,嵌入 OCR 文字層,同時保持視覺外觀。 在我們的指導中了解更多 創建可搜尋 PDF。
using IronOcr;
var ocr = new IronTesseract();
var ocrInput = new OcrInput();
// Load a PDF file
ocrInput.LoadPdf("invoice.pdf");
// Apply multiple filters for comprehensive improvement
ocrInput.ToGrayScale()
.DeNoise()
.Sharpen()
.EnhanceResolution(300);
// Perform OCR
OcrResult result = ocr.Read(ocrInput);
// Save the result as a searchable PDF with filters applied
result.SaveAsSearchablePdf("outputFiltered.pdf", true);
// Or save without filters to preserve original appearance
result.SaveAsSearchablePdf("outputOriginal.pdf", false);
// Export to other formats
result.SaveAsTextFile("extracted-text.txt");
result.SaveAsHocrFile("output.html");using IronOcr;
var ocr = new IronTesseract();
var ocrInput = new OcrInput();
// Load a PDF file
ocrInput.LoadPdf("invoice.pdf");
// Apply multiple filters for comprehensive improvement
ocrInput.ToGrayScale()
.DeNoise()
.Sharpen()
.EnhanceResolution(300);
// Perform OCR
OcrResult result = ocr.Read(ocrInput);
// Save the result as a searchable PDF with filters applied
result.SaveAsSearchablePdf("outputFiltered.pdf", true);
// Or save without filters to preserve original appearance
result.SaveAsSearchablePdf("outputOriginal.pdf", false);
// Export to other formats
result.SaveAsTextFile("extracted-text.txt");
result.SaveAsHocrFile("output.html");Imports IronOcr
Dim ocr As New IronTesseract()
Dim ocrInput As New OcrInput()
' Load a PDF file
ocrInput.LoadPdf("invoice.pdf")
' Apply multiple filters for comprehensive improvement
ocrInput.ToGrayScale() _
.DeNoise() _
.Sharpen() _
.EnhanceResolution(300)
' Perform OCR
Dim result As OcrResult = ocr.Read(ocrInput)
' Save the result as a searchable PDF with filters applied
result.SaveAsSearchablePdf("outputFiltered.pdf", True)
' Or save without filters to preserve original appearance
result.SaveAsSearchablePdf("outputOriginal.pdf", False)
' Export to other formats
result.SaveAsTextFile("extracted-text.txt")
result.SaveAsHocrFile("output.html")Imports IronOcr
Dim ocr As New IronTesseract()
Dim ocrInput As New OcrInput()
' Load a PDF file
ocrInput.LoadPdf("invoice.pdf")
' Apply multiple filters for comprehensive improvement
ocrInput.ToGrayScale() _
.DeNoise() _
.Sharpen() _
.EnhanceResolution(300)
' Perform OCR
Dim result As OcrResult = ocr.Read(ocrInput)
' Save the result as a searchable PDF with filters applied
result.SaveAsSearchablePdf("outputFiltered.pdf", True)
' Or save without filters to preserve original appearance
result.SaveAsSearchablePdf("outputOriginal.pdf", False)
' Export to other formats
result.SaveAsTextFile("extracted-text.txt")
result.SaveAsHocrFile("output.html")我如何在濾鏡後的 PDF 和原始 PDF 之間進行選擇?
當:使用篩選條件儲存 (true) 時
- 原始文件品質不佳
- 各文件的外觀必須一致
- 篩選版本大幅提升可讀性
- 長期儲存的文件歸檔
不使用篩選條件儲存 (false) 時:
- 法律上要求保持原貌
- 顏色資訊很重要
- 必須保持文件的真實性
- 僅需使用篩選器來達到 OCR 精確度
如需進階的 PDF 處理選項,請探索我們的 PDF OCR 文字擷取指導。 如需最佳濾鏡組合,請參閱 濾鏡精靈教程。
常見問題
IronOCR 提供哪些影像校正濾波器用於提升OCR效果?
IronOCR 提供五種必要的影像校正濾波器:銳化、提高解析度、去噪、膨脹和腐蝕。這些濾波器透過提高文字清晰度和減少影像噪點來增強OCR準確性。
銳化濾波器如何提高OCR的準確性?
銳化濾波器增加影像邊緣的對比度,創造更清晰的文字邊界。這種增強協助OCR引擎更準確地辨識字符,藉由強調文字與背景的分離。
何時應使用提高解析度濾波器?
提高解析度濾波器適用於低解析度影像如截圖、網路影像及掃描的歷史文件。它增加像素密度,提升清晰度和銳利度,以便更精確的OCR閱讀。
使用去噪濾波器有什麼好處?
去噪濾波器去除影像中的不需要的雜訊,協助隔離文字與背景干擾。這讓OCR輸出變得更乾淨、更準確。
膨脹濾波器如何幫助OCR過程?
膨脹濾波器讓文字在影像中變得更顯著。這對於細小或斷裂的文字字符特別有用,使OCR軟體能更有效地辨識它們。
為何我會在掃描文件上使用腐蝕濾波器?
腐蝕濾波器減少亮部區域的大小,改善厚實或畸形字符的分離。它對於過度印墨、粗體文字在掃描文件中看似合併的狀態特別有益。
如何使用IronOCR將過濾後的影像保存為可搜尋的PDF?
您可以藉由在IronOCR中使用SaveAsSearchablePdf方法將修改後的影像保存為可搜尋的PDF。此方法允許您選擇將文件以已應用濾波器的狀態或原始狀態保存。
選擇使用過濾後的PDF與原始PDF時應考慮哪些參數?
當您需要一致的外觀、增強的可讀性或存檔時,選擇濾波後的PDF。當法律要求保留原始外觀或維護色彩資訊和文件真實性時,選擇原始PDF。
哪些常見跡象顯示影像需要去噪?
噪點指標包括隨機的斑點、鹽與胡椒噪聲、高ISO攝影的顆粒感以及干擾文字清晰度的背景紋理。
針對最佳OCR效果推薦的典型DPI設置是多少?
OCR引擎在300 DPI時效果最佳。較低解析度可能導致字符錯誤識別,而較高解析度可能會降低處理速度而不提升準確性。IronOCR的增強濾波器可以將影像升級到最佳DPI級別。
Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。