Ethiopic Alphabet OCR in C# and .NET
This article was translated from English: Does it need improvement?
Translated
View the article in English
IronOCR是一個C#軟體元件,允許.NET程式設計師從圖片和PDF文件中讀取126種語言的文字,包括埃塞俄比亞字母。
它是 Tesseract 的一個進階分支,專為 .NET 開發者而建構,在速度和準確性方面經常超越其他 Tesseract 引擎。
IronOcr.Languages.Ethiopic的內容
此套件包含73種.NET的OCR語言:
- 埃塞俄比亞字母
- 埃塞俄比亞字母最佳
- 埃塞俄比亞字母快速
下載
埃塞俄比亞字母語言包 [Ge'ez]
安裝
我們要做的第一件事是將我們的埃塞俄比亞字母 OCR套件安裝到您的.NET專案中。
Install-Package IronOcr.Languages.Ethiopic
程式範例
這個C#程式碼範例從圖片或PDF文件中讀取埃塞俄比亞字母文字。
// First, ensure the IronOcr.Languages.Ethiopic package is installed
using IronOcr;
public class EthiopicOcrExample
{
public void ReadEthiopicText()
{
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language property to Ethiopic
Ocr.Language = OcrLanguage.Ethiopic;
// Define the input image containing Ethiopic text
using (var Input = new OcrInput(@"images\Ethiopic.png"))
{
// Perform OCR to read text from the image
var Result = Ocr.Read(Input);
// Store the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// First, ensure the IronOcr.Languages.Ethiopic package is installed
using IronOcr;
public class EthiopicOcrExample
{
public void ReadEthiopicText()
{
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language property to Ethiopic
Ocr.Language = OcrLanguage.Ethiopic;
// Define the input image containing Ethiopic text
using (var Input = new OcrInput(@"images\Ethiopic.png"))
{
// Perform OCR to read text from the image
var Result = Ocr.Read(Input);
// Store the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' First, ensure the IronOcr.Languages.Ethiopic package is installed
Imports IronOcr
Public Class EthiopicOcrExample
Public Sub ReadEthiopicText()
' Create an instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language property to Ethiopic
Ocr.Language = OcrLanguage.Ethiopic
' Define the input image containing Ethiopic text
Using Input = New OcrInput("images\Ethiopic.png")
' Perform OCR to read text from the image
Dim Result = Ocr.Read(Input)
' Store the recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
$vbLabelText
$csharpLabel
- 此範例建立
IronTesseract的實例以執行OCR操作。 - 它使用
OcrLanguage.Ethiopic設置語言為埃塞俄比亞。 OcrInput用於定義來源圖片。Read方法執行OCR並返回包含識別文字的結果。- 識別的文字儲存在
AllText中並列印到控制台。

