OCR holandés en C# y .NET
Other versions of this document:
IronOCR es un componente de software de C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el holandés.
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.Dutch
Este paquete contiene 40 idiomas OCR para .NET:
- Holandés
- HolandésBest
- HolandésFast
Descargar
Paquete de idioma holandés [Nederlands]
Instalación
Lo primero que necesitamos hacer es instalar el paquete OCR holandés en tu proyecto .NET.
Install-Package IronOCR.Languages.Dutch
Ejemplo de código
Este ejemplo de código en C# lee texto en holandés desde una imagen o documento PDF.
// The first step is to ensure the IronOcr.Languages.Dutch package is installed.
// You can do this from the Package Manager Console with the command:
// PM> Install-Package IronOcr.Languages.Dutch
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dutch.
// This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch;
// Use a using statement to manage the OcrInput resource lifecycle.
using (var Input = new OcrInput(@"images\Dutch.png"))
{
// Read the image and perform OCR to extract text.
var Result = Ocr.Read(Input);
// Store the recognized text into a variable.
var AllText = Result.Text;
// You can now use the extracted text stored in AllText.
}// The first step is to ensure the IronOcr.Languages.Dutch package is installed.
// You can do this from the Package Manager Console with the command:
// PM> Install-Package IronOcr.Languages.Dutch
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dutch.
// This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch;
// Use a using statement to manage the OcrInput resource lifecycle.
using (var Input = new OcrInput(@"images\Dutch.png"))
{
// Read the image and perform OCR to extract text.
var Result = Ocr.Read(Input);
// Store the recognized text into a variable.
var AllText = Result.Text;
// You can now use the extracted text stored in AllText.
}' The first step is to ensure the IronOcr.Languages.Dutch package is installed.
' You can do this from the Package Manager Console with the command:
' PM> Install-Package IronOcr.Languages.Dutch
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Dutch.
' This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch
' Use a using statement to manage the OcrInput resource lifecycle.
Using Input = New OcrInput("images\Dutch.png")
' Read the image and perform OCR to extract text.
Dim Result = Ocr.Read(Input)
' Store the recognized text into a variable.
Dim AllText = Result.Text
' You can now use the extracted text stored in AllText.
End UsingEste código configura un proceso OCR en C# para leer texto en holandés. Inicializa el objeto IronTesseract, especifica el idioma OCR, y procesa el archivo de imagen de entrada. El resultado es el texto extraído del archivo, que se puede utilizar como se desee en tu aplicación.





