OCR Cherokee en C

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 desarrolladores en .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluyendo Cherokee.

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

Este paquete contiene 120 idiomas OCR para .NET:

  • CherokeeAlphabet
  • CherokeeAlphabetBest
  • CherokeeAlphabetFast
  • Cherokee
  • CherokeeBest
  • CherokeeFast

Descargar

Paquete de idioma Cherokee [ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ]

Instalación

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

Install-Package IronOCR.Languages.Cherokee

Ejemplo de código

Este ejemplo de código C# lee texto Cherokee de una imagen o documento PDF.

// Import the IronOcr namespace
using IronOcr;

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

        // Set the language for OCR to Cherokee
        Ocr.Language = OcrLanguage.Cherokee;

        // Use OcrInput to specify the image or PDF to be read
        using (var Input = new OcrInput(@"images\Cherokee.png"))
        {
            // Perform OCR on the input document
            var Result = Ocr.Read(Input);

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

            // Display the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

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

        // Set the language for OCR to Cherokee
        Ocr.Language = OcrLanguage.Cherokee;

        // Use OcrInput to specify the image or PDF to be read
        using (var Input = new OcrInput(@"images\Cherokee.png"))
        {
            // Perform OCR on the input document
            var Result = Ocr.Read(Input);

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

            // Display the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

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

		' Set the language for OCR to Cherokee
		Ocr.Language = OcrLanguage.Cherokee

		' Use OcrInput to specify the image or PDF to be read
		Using Input = New OcrInput("images\Cherokee.png")
			' Perform OCR on the input document
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

			' Display the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

Aquí hay una breve descripción de cómo funciona el código:

  • IronTesseract: Se crea una instancia de la clase IronTesseract para manejar las operaciones OCR.
  • OcrLanguage.Cherokee: El idioma se establece en Cherokee utilizando la propiedad OcrLanguage.Cherokee, lo cual indica al motor OCR reconocer texto en Cherokee.
  • OcrInput: Se proporciona una ruta de entrada a la clase OcrInput donde se encuentra la imagen o el documento PDF.
  • Ocr.Read: Se llama al método Read en el objeto OCR, pasando el input. Realiza el proceso OCR.
  • Result.Text: Extrae el texto reconocido del resultado y lo almacena en la variable AllText para su uso posterior.
  • Salida de consola: El texto reconocido se imprime en la consola.