Gujarati OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Bu belgenin diğer versiyonları:

IronOCR, .NET yazılımcılarının, Gujarati de dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okumasına izin veren bir C# yazılım bileşenidir.

Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Gujarati İçeriği

Bu paket, .NET için 120 OCR dili içerir:

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

İndirme

Gujarati Dil Paketi [गुजराती]

Kurulum

Yapmamız gereken ilk şey, Gujarati OCR paketimizi .NET projenize kurmaktır.

Install-Package IronOcr.Languages.Gujarati

Kod Örneği

Bu C# kod örneği, bir görüntü veya PDF belgesinden Gujarati metin okur.

// 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);
}
' Import the IronOcr namespace to access OCR functionality
Imports IronOcr

' Create an instance of the IronTesseract class to handle the OCR process
Private 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 Input = New OcrInput("images\Gujarati.png")
	' Perform OCR on the input document and obtain the result
	Dim Result = Ocr.Read(Input)

	' Extract the recognized text from the OCR result
	Dim AllText = Result.Text

	' Display or use the extracted text as needed
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel