Gujarati OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Outras versões deste documento:

IronOCR é um componente de software C# que permite a programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo Gujarati.

Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET , e que supera regularmente outros mecanismos do Tesseract tanto em velocidade quanto em precisão.

Conteúdos de IronOcr.Languages.Gujarati

Este pacote contém 120 idiomas OCR for .NET:

  • Gujarati
  • GujaratiBest
  • GujaratiFast
  • GujaratiAlphabet
  • GujaratiAlphabetBest
  • GujaratiAlphabetFast

Baixar

Pacote de Idioma Gujarati [ગજરાતી]

Instalação

A primeira coisa que devemos fazer é instalar nosso pacote OCR Gujarati no seu projeto .NET.

Install-Package IronOcr.Languages.Gujarati

Exemplo de código

Este exemplo de código C# lê texto Gujarati de uma imagem ou documento PDF.

// Import the IronOcr namespace to access OCR functionality
using IronOcr;

// Create an instance of the IronTesseract class to handle the OCR process
var Ocr = new IronTesseract();

// Set the language to Gujarati
Ocr.Language = OcrLanguage.Gujarati;

// Use the OcrInput class to provide the path to the image or PDF containing Gujarati text
using (var Input = new OcrInput(@"images\Gujarati.png"))
{
    // Perform OCR on the input document and obtain the result
    var Result = Ocr.Read(Input);

    // Extract the recognized text from the OCR result
    var AllText = Result.Text;

    // Display or use the extracted text as needed
    Console.WriteLine(AllText);
}
// Import the IronOcr namespace to access OCR functionality
using IronOcr;

// Create an instance of the IronTesseract class to handle the OCR process
var Ocr = new IronTesseract();

// Set the language to Gujarati
Ocr.Language = OcrLanguage.Gujarati;

// Use the OcrInput class to provide the path to the image or PDF containing Gujarati text
using (var Input = new OcrInput(@"images\Gujarati.png"))
{
    // Perform OCR on the input document and obtain the result
    var Result = Ocr.Read(Input);

    // Extract the recognized text from the OCR result
    var AllText = Result.Text;

    // Display or use the extracted text as needed
    Console.WriteLine(AllText);
}
$vbLabelText   $csharpLabel