Ukrainian OCR in C# and .NET
Outras versões deste documento:
O IronOCR é um componente de software em C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o ucraniano.
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údo do IronOcr.Idiomas.Ucraniano
Este pacote contém 52 linguagens de OCR for .NET:
- Ucraniano
- Melhor ucraniano
- Ucraniano Rápido
Baixar
Pacote de idioma ucraniano [українська мова]
Instalação
O primeiro passo é instalar o pacote OCR ucraniano no seu projeto .NET .
Install-Package IronOcr.Languages.Ukrainian
Exemplo de código
Este exemplo de código C# lê texto ucraniano de uma imagem ou documento PDF.
// Ensure you have the IronOcr.Languages.Ukrainian package installed.
// Using IronOcr namespace to access OCR functionalities.
using IronOcr;
// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Use an OcrInput object for image input
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
// Perform OCR operation on the image
var Result = Ocr.Read(Input);
// Get the extracted text from the result
var AllText = Result.Text;
// Output or use the extracted text as needed
Console.WriteLine(AllText);
}
// Ensure you have the IronOcr.Languages.Ukrainian package installed.
// Using IronOcr namespace to access OCR functionalities.
using IronOcr;
// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Use an OcrInput object for image input
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
// Perform OCR operation on the image
var Result = Ocr.Read(Input);
// Get the extracted text from the result
var AllText = Result.Text;
// Output or use the extracted text as needed
Console.WriteLine(AllText);
}
Imports IronOcr
' Initialize a new instance of IronTesseract
Dim Ocr As New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
' Use an OcrInput object for image input
Using Input As New OcrInput("images\Ukrainian.png")
' Perform OCR operation on the image
Dim Result = Ocr.Read(Input)
' Get the extracted text from the result
Dim AllText = Result.Text
' Output or use the extracted text as needed
Console.WriteLine(AllText)
End Using
- Certifique-se de substituir o caminho
"images\Ukrainian.png"pelo caminho para sua própria imagem ou documento PDF. Este exemplo demonstra como configurar o IronOCR para reconhecer texto ucraniano e exibir o texto extraído.

