Haitian OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C# Softwarekomponente, die es .NET Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Haitianisch, zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Haitian
Dieses Paket enthält 46 OCR-Sprachen for .NET:
- Haitianisch
- Haitianischisch
- HaitianischischSchnell
Download
Haitianisches Sprachpaket [Kreyòl ayisyen]
Installation
Das erste, was wir tun müssen, ist unser haitianisches OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Haitian
Beispielcode
Dieses C#-Beispiel liest haitianischen Text aus einem Bild- oder PDF-Dokument.
// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian
using IronOcr;
class HaitianOcrExample
{
static void Main()
{
// Initialize the IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Haitian
Ocr.Language = OcrLanguage.Haitian;
// Using the OcrInput class, define the path to the image or PDF
using (var Input = new OcrInput(@"images\Haitian.png"))
{
// Read the text from the image
var Result = Ocr.Read(Input);
// Extract the text found in the image
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}
}
}
// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian
using IronOcr;
class HaitianOcrExample
{
static void Main()
{
// Initialize the IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Haitian
Ocr.Language = OcrLanguage.Haitian;
// Using the OcrInput class, define the path to the image or PDF
using (var Input = new OcrInput(@"images\Haitian.png"))
{
// Read the text from the image
var Result = Ocr.Read(Input);
// Extract the text found in the image
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}
}
}
' Install the required IronOcr package
' PM> Install-Package IronOcr.Languages.Haitian
Imports IronOcr
Friend Class HaitianOcrExample
Shared Sub Main()
' Initialize the IronTesseract object
Dim Ocr = New IronTesseract()
' Set the OCR language to Haitian
Ocr.Language = OcrLanguage.Haitian
' Using the OcrInput class, define the path to the image or PDF
Using Input = New OcrInput("images\Haitian.png")
' Read the text from the image
Dim Result = Ocr.Read(Input)
' Extract the text found in the image
Dim AllText = Result.Text
' Output the extracted text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Dieser Code-Schnipsel zeigt, wie man OCR mit der IronTesseract-Bibliothek implementiert, um haitianischen Text aus Bildern oder PDF-Dokumenten zu lesen.
- Stellen Sie sicher, dass das Bild oder PDF im angegebenen Pfad liegt.
- Dieses Beispiel geht davon aus, dass Sie in einer Entwicklungsumgebung arbeiten, die mit .NET kompatibel ist.

