OCR del alfabeto tibetano en C# y .NET
IronOCR es un componente de software en C# que permite a los desarrolladores en .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el alfabeto tibetano.
Es una bifurcación avanzada de Tesseract, desarrollada exclusivamente para desarrolladores .NET, y supera regularmente a otros motores Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Tibetan
Este paquete contiene 114 idiomas OCR para .NET:
- Tibetano
- TibetanooMejor
- TibetanooRápido
- AlfabetoTibetano
- AlfabetoTibetanoMejor
- AlfabetoTibetanoRápido
Descargar
Paquete de idioma del alfabeto tibetano [Estándar Tibetano]
Instalación
Lo primero que necesitas hacer es instalar el paquete de OCR del Alfabeto Tibetano en tu proyecto .NET.
Install-Package IronOCR.Languages.Tibetan
Ejemplo de código
Este ejemplo de código en C# lee texto del alfabeto tibetano de una imagen o documento PDF.
// Import the IronOcr namespace to use its components
using IronOcr;
class Program
{
static void Main()
{
// Initialize a new IronTesseract object for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan;
// Use a using statement for automatic resource disposal
using (var Input = new OcrInput(@"images\Tibetan.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve all recognized text from the OCR Result
var AllText = Result.Text;
// Output the recognized text to the console
// Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText);
}
}
}// Import the IronOcr namespace to use its components
using IronOcr;
class Program
{
static void Main()
{
// Initialize a new IronTesseract object for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan;
// Use a using statement for automatic resource disposal
using (var Input = new OcrInput(@"images\Tibetan.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve all recognized text from the OCR Result
var AllText = Result.Text;
// Output the recognized text to the console
// Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace to use its components
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize a new IronTesseract object for OCR
Dim Ocr = New IronTesseract()
' Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan
' Use a using statement for automatic resource disposal
Using Input = New OcrInput("images\Tibetan.png")
' Perform OCR to read text from the input image
Dim Result = Ocr.Read(Input)
' Retrieve all recognized text from the OCR Result
Dim AllText = Result.Text
' Output the recognized text to the console
' Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText)
End Using
End Sub
End ClassNotas
- La biblioteca OCR (
IronTesseract) está configurada para leer el idioma tibetano de la imagen proporcionada. OcrInputse encarga de cargar la imagen de entrada y asegura la correcta liberación de recursos utilizando la instrucciónusing.Result.Textcontiene el texto procesado por OCR que puede ser impreso o utilizado dentro de la aplicación.





