OCR estonio en C# y .NET
Other versions of this document:
IronOCR es un componente de software C# que permite a los desarrolladores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el estonio. Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Estonian
Este paquete contiene los siguientes idiomas de OCR para .NET:
- Estonian
- EstonianBest
- EstonianFast
Descargar
Paquete de idioma estonio [eesti]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete de OCR estonio en su proyecto .NET.
Install-Package IronOCR.Languages.Estonian
Ejemplo de código
Este ejemplo de código C# lee texto en estonio de una imagen o documento PDF.
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract class
Private Ocr = New IronTesseract()
' Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian
' Load the image or PDF from which text needs to be extracted
Using Input = New OcrInput("images\Estonian.png")
' Perform OCR to read text from the specified input
Dim Result = Ocr.Read(Input)
' Extract all the recognized text from the OCR result
Dim AllText = Result.Text
End UsingExplicación del código:
- IronTesseract: Esta es una clase primaria proporcionada por IronOCR para realizar operaciones OCR.
- Ocr.Language: Al establecer esta propiedad, definimos qué idioma se debe usar durante el OCR. Aquí, se establece en estonio.
- OcrInput: Esto se utiliza para especificar la imagen o documento PDF del que queremos leer. Toma una ruta de archivo como entrada.
- Ocr.Read(Input): Este método procesa la entrada especificada y realiza OCR sobre ella.
- Result.Text: Esta propiedad contiene todo el texto que ha sido reconocido y extraído exitosamente de la imagen o documento PDF.





