Haitian OCR in C# and .NET
Outras versões deste documento:
O IronOCR é um componente de software C# que permite que programadores .NET leiam texto de imagens e documentos PDF em 126 idiomas, incluindo o Haitiano.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdos de IronOcr.Languages.Haitian
Este pacote contém 46 linguagens de OCR for .NET:
- Haitiano
- HaitianooMelhor
- HaitianooRápido
Baixar
Pacote de Idioma Haitiano [Kreyòl ayisyen]
Instalação
A primeira coisa que devemos fazer é instalar nosso pacote OCR Haitiano no seu projeto .NET.
Install-Package IronOcr.Languages.Haitian
Exemplo de código
Este exemplo de código C# lê texto Haitiano de uma imagem ou documento PDF.
// 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
- Este trecho de código demonstra como implementar OCR usando a biblioteca IronTesseract para ler texto Haitiano de imagens ou documentos PDF.
- Certifique-se de que a imagem ou PDF esteja localizado no caminho especificado.
- Este exemplo assume que você está trabalhando em um ambiente de desenvolvimento compatível com .NET.

