Oriya OCR in C# and .NET
Outras versões deste documento:
O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o Oriya. 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 de IronOcr.Languages.Oriya
Este pacote contém diversas linguagens de OCR for .NET:
- Oriya
- OriyaMelhor
- OriyaRápido
- Alfabeto Oriya
- AlfabetoOriyaMelhor
- AlfabetoOriyaRápido
Baixar
Pacote de idioma Oriya [ଓଡଆ]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote de OCR Oriya em seu projeto .NET.
Exemplo de código
Este exemplo de código C# lê texto em Oriya de uma imagem ou documento PDF.
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Module Program
Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input As New OcrInput("images\Oriya.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Module' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Module Program
Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input As New OcrInput("images\Oriya.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Module- O objeto
IronTesseracté usado para configurar e realizar OCR. - O idioma para OCR é configurado para Oriya usando
OcrLanguage.Oriya. - O
OcrInputpermite que você especifique a imagem ou documento que precisa de extração de texto. - O método
Read()realiza o OCR e produz um resultado do qual o texto reconhecido pode ser extraído e utilizado.
Curtis Chau é bacharel em Ciência da Computação (Universidade Carleton) e se especializa em desenvolvimento front-end, com experiência em Node.js, TypeScript, JavaScript e React. Apaixonado por criar interfaces de usuário intuitivas e esteticamente agradáveis, Curtis gosta de trabalhar com frameworks modernos e criar manuais bem estruturados e visualmente atraentes.