Haitian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının 126 dil, Haitice dahil, içerisinden resimler ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Haitian İçeriği
Bu paket, .NET için 46 OCR dilini içerir:
- Haitian
- HaitianBest
- HaitianFast
İndir
Haitice Dil Paketi [Kreyòl ayisyen]
Kurulum
Yapmamız gereken ilk şey, .NET projenize Haitian OCR paketimizi kurmaktır.
Install-Package IronOcr.Languages.Haitian
Kod Örneği
Bu C# kod örneği, bir Resim veya PDF belgesinden Haitice metin okur.
// 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
- Bu kod parçası, IronTesseract kütüphanesini kullanarak resim veya PDF belgelerinden Haitice metin okuma için OCR'nin nasıl uygulanacağını gösterir.
- Görüntü veya PDF'nin belirtilen yolda olduğundan emin olun.
- Bu örnek, .NET ile uyumlu bir geliştirme ortamında çalıştığınızı varsayar.

