Faroese OCR in C# and .NET
Curtis Chau
Updated: 2026年4月23日
IronOCR 是一個 C# 軟體元件,讓 .NET 程式設計師能夠從 126 種語言(包括法羅語)的圖片和 PDF 文件中讀取文字。
這是 Tesseract 的進階分支版本,專為 .NET 開發人員打造,無論在速度或準確度上,表現均定期優於其他 Tesseract 引擎。
IronOcr.Languages.Faroese 的內容
此套件包含 46 種適用於 .NET 的 OCR 語言:
- 法羅語
- 法羅語最佳
- 法羅語Fast
下載
法羅語語言套件 [føroyskt]
安裝
首先,請將法羅語 OCR 套件安裝至您的 .NET 專案中:
程式碼範例
此 C# 程式碼範例用於從圖片或 PDF 文件中讀取法羅語文字。
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR
' In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese
' Use a Using statement for automatic resource management
Using Input As New OcrInput("images\Faroese.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Print the extracted text to console
Console.WriteLine(AllText)
End Using
End Sub
End ClassIronTesseract:此物件作為核心 OCR 引擎。Ocr.Language:將 OCR 設定為法羅語。 請確保已安裝法羅語語言套件。OcrInput:提供用於 OCR 的輸入檔案(圖片或 PDF)。Ocr.Read:處理輸入內容並產生 OCR 結果。Result.Text:從 OCR 操作中擷取文字資訊。

技術作家
Curtis Chau擁有Carleton大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。
...
閱讀更多