將不同圖像處理應用於圖像並保存

This article was translated from English: Does it need improvement?
Translated
View the article in English

如何將應用不同影像處理/影像濾鏡的影像儲存?

請應用以下簡單的程式碼範例:

OcrInput Input = new OcrInput(browsFile_txt.Text);
    // Image filter being tested
    Input.ToGrayScale();
    foreach (var p in Input.Pages)
    {
    p.SaveAsImage($"{outputPath}\\{DateTime.Now.ToString("yyyyMMddhhmmss")}.png");
    }

若要查看 IronOCR 中可用的完整圖像優化過濾器列表,請參閱 https://ironsoftware.com/csharp/ocr/examples/ocr-image-filters-for-net-tesseract/

MSDN風格類別文件 - https://ironsoftware.com/csharp/ocr/object-reference/api/IronOcr.OcrInput.html#methods