OCR finlandés en C# y .NET
Other versions of this document:
IronOCR es un componente de software C# que permite a los desarrolladores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el finlandé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.Finnish
Este paquete contiene 46 idiomas OCR para .NET:
- Finés
- FinnishBest
- FinnishFast
Descargar
Paquete de idioma finlandés [suomi]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR finlandés en su proyecto .NET.
Install-Package IronOCR.Languages.Finnish
Ejemplo de código
Este ejemplo de código C# lee texto finlandés de una imagen o documento PDF.
// Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
// You can install it via NuGet package manager.
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish; // Set the language of the OCR engine to Finnish
// Using a using statement to ensure the OcrInput gets disposed of correctly
using (var Input = new OcrInput(@"images\Finnish.png")) // Path to the image/PDF containing Finnish text
{
var Result = Ocr.Read(Input); // Perform OCR on the input file
var AllText = Result.Text; // Extract the recognized text as a string
// Output or process the extracted text as required
Console.WriteLine(AllText); // Example of outputting the text to the console
}// Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
// You can install it via NuGet package manager.
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish; // Set the language of the OCR engine to Finnish
// Using a using statement to ensure the OcrInput gets disposed of correctly
using (var Input = new OcrInput(@"images\Finnish.png")) // Path to the image/PDF containing Finnish text
{
var Result = Ocr.Read(Input); // Perform OCR on the input file
var AllText = Result.Text; // Extract the recognized text as a string
// Output or process the extracted text as required
Console.WriteLine(AllText); // Example of outputting the text to the console
}' Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
' You can install it via NuGet package manager.
Imports IronOcr
Private Ocr = New IronTesseract() ' Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish ' Set the language of the OCR engine to Finnish
' Using a using statement to ensure the OcrInput gets disposed of correctly
Using Input = New OcrInput("images\Finnish.png") ' Path to the image/PDF containing Finnish text
Dim Result = Ocr.Read(Input) ' Perform OCR on the input file
Dim AllText = Result.Text ' Extract the recognized text as a string
' Output or process the extracted text as required
Console.WriteLine(AllText) ' Example of outputting the text to the console
End Using




