Haitian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayiciya, 126 dilde, Haiti dili dahil olmak üzere, resimlerden ve PDF belgelerinden metin okumalarini olanak taniyan bir C# yazilim bileşenidir.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Haitian'in Icerigi
Bu paket, .NET için 46 OCR dili içerir:
- Haitice
- HaiticeBest
- HaiticeFast
İndirme
Haitian Dil Paketi [Kreyòl ayisyen]
Kurulum
Yapmamiz gereken ilk şey, .NET projenize Haitian OCR paketimizi kurmaktir.
Install-Package IronOcr.Languages.Haitian
Kod Örneği
Bu C# kod ornegi, bir Resim veya PDF belgesinden Haitian metni 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 parcacigi, resimlerden veya PDF belgelerinden Haitian metnini okumak icin IronTesseract kutuphanesini kullanarak OCR nasıl uygulanacagini gösterir.
- Resim veya PDF'nin belirtilen yolda bulundugundan emin olun.
- Bu örnek, .NET ile uyumlu bir geliştirme ortaminda calistiginizi varsayar.

