Ethiopic Alphabet OCR in C# and .NET
IronOCR to komponent oprogramowania C# pozwalający programistom .NET odczytywać tekst z obrazów i dokumentów PDF w 126 językach, w tym w alfabecie etiopskim.
Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.
Zawartość IronOcr.Languages.Ethiopic
Ten pakiet zawiera 73 języki OCR dla .NET:
- EthiopicAlphabet
- EthiopicAlphabetBest
- EthiopicAlphabetFast
Pobieranie
Ethiopic Alphabet Language Pack [Ge'ez]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu OCR alfabetu etiopskiego do twojego projektu .NET.
Install-Package IronOcr.Languages.Ethiopic
Przyklad kodu
Ten przykład kodu C# odczytuje tekst alfabetu etiopskiego z obrazu lub dokumentu 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
- Ten przykład tworzy instancję
IronTesseractdo wykonywania operacji OCR. - Ustawia język na etiopski za pomocą
OcrLanguage.Ethiopic. OcrInputjest używane do zdefiniowania źródłowego obrazu.- Metoda
Readwykonuje OCR i zwraca wynik zawierający rozpoznany tekst. - Rozpoznany tekst jest przechowywany w
AllTexti drukowany na konsolę.

