OCR malayo en C# y .NET
IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el malayo.
Es una bifurcación avanzada de Tesseract, construida exclusivamente para desarrolladores .NET y que supera regularmente a otros motores Tesseract en términos de velocidad y precisión.
Contenido de IronOcr.Languages.Malay
Este paquete contiene 40 idiomas OCR para .NET:
- Malayo
- MalayoBest
- MalayoFast
Descargar
Paquete de idioma malayo [bahasa Melayu]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR de malayo en tu proyecto .NET.
Install-Package IronOCR.Languages.Malay
Ejemplo de código
Este ejemplo de código C# lee texto en malayo de una imagen o documento PDF.
// This example demonstrates how to read Malay text using IronOcr.
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Malay
Ocr.Language = OcrLanguage.Malay;
// Use a using statement to ensure the OcrInput is properly disposed of
using (var Input = new OcrInput(@"images\Malay.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract and store the recognized text from the OCR result
string AllText = Result.Text;
// Output the recognized text (optional)
Console.WriteLine(AllText);
}
}
}// This example demonstrates how to read Malay text using IronOcr.
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Malay
Ocr.Language = OcrLanguage.Malay;
// Use a using statement to ensure the OcrInput is properly disposed of
using (var Input = new OcrInput(@"images\Malay.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract and store the recognized text from the OCR result
string AllText = Result.Text;
// Output the recognized text (optional)
Console.WriteLine(AllText);
}
}
}' This example demonstrates how to read Malay text using IronOcr.
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of the IronTesseract class
Dim Ocr = New IronTesseract()
' Set the OCR language to Malay
Ocr.Language = OcrLanguage.Malay
' Use a using statement to ensure the OcrInput is properly disposed of
Using Input = New OcrInput("images\Malay.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract and store the recognized text from the OCR result
Dim AllText As String = Result.Text
' Output the recognized text (optional)
Console.WriteLine(AllText)
End Using
End Sub
End Class




