OCR gujarati en C# y .NET
Other versions of this document:
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 gujarati.
Es una derivación 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.Gujarati
Este paquete contiene 120 idiomas OCR para .NET:
- Gujarati
- GujaratiBest
- GujaratiFast
- GujaratiAlphabet
- GujaratiAlphabetBest
- GujaratiAlphabetFast
Descargar
Paquete de idioma gujarati [ગુજરાતી]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR Gujarati en su proyecto .NET.
Install-Package IronOCR.Languages.Gujarati
Ejemplo de código
Este ejemplo de código C# lee texto en gujarati de una imagen o 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);
}' 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




