Alfabeto aborigen canadiense OCR en C# y .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 idiomas más

IronOCR es un componente de software C# que permite a los programadores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el Abecedario Aborigen Canadiense.

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.CanadianAboriginal

Este paquete contiene 103 idiomas OCR para .NET:

  • AbecedarioAborigenCanadiense
  • AbecedarioAborigenCanadienseMejor
  • AbecedarioAborigenCanadienseRápido

Descargar

Paquete de Idioma Aborigen Canadiense [Primeras Naciones de Canadá]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR de Abecedario Aborigen Canadiense en tu proyecto .NET.

Install-Package IronOCR.Languages.CanadianAboriginal

Ejemplo de código

Este ejemplo de código C# lee texto del Abecedario Aborigen Canadiense de una Imagen o documento PDF. Utiliza la biblioteca IronOCR para realizar el reconocimiento óptico de caracteres.

// Install the IronOCR package via NuGet
// PM> Install-Package IronOcr.Languages.CanadianAboriginal

using IronOcr;

class Program
{
    static void Main()
    {
        // Create an instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Canadian Aboriginal
        Ocr.Language = OcrLanguage.CanadianAboriginal;

        // Provide the path to the image or PDF for OCR processing
        using (var Input = new OcrInput(@"images\CanadianAboriginal.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract all recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Install the IronOCR package via NuGet
// PM> Install-Package IronOcr.Languages.CanadianAboriginal

using IronOcr;

class Program
{
    static void Main()
    {
        // Create an instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Canadian Aboriginal
        Ocr.Language = OcrLanguage.CanadianAboriginal;

        // Provide the path to the image or PDF for OCR processing
        using (var Input = new OcrInput(@"images\CanadianAboriginal.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract all recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Install the IronOCR package via NuGet
' PM> Install-Package IronOcr.Languages.CanadianAboriginal

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create an instance of the IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the language to Canadian Aboriginal
		Ocr.Language = OcrLanguage.CanadianAboriginal

		' Provide the path to the image or PDF for OCR processing
		Using Input = New OcrInput("images\CanadianAboriginal.png")
			' Perform OCR on the input file
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • El código anterior utiliza la clase IronOcr.IronTesseract para realizar OCR.
  • Establece OcrLanguage.CanadianAboriginal para especificar el modelo de idioma para el texto aborigen canadiense.
  • El objeto OcrInput carga la imagen especificada en la ruta.
  • El método Ocr.Read procesa la imagen y devuelve el texto reconocido.
  • Finalmente, el texto extraído se imprime en la consola.