Tibetan Alphabet OCR in C# and .NET
IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including the Tibetan Alphabet.
It is an advanced fork of Tesseract, built exclusively for .NET developers, and it regularly outperforms other Tesseract engines in both speed and accuracy.
Contents of IronOcr.Languages.Tibetan
This package contains 114 OCR languages for .NET:
- Tibetan
- TibetanBest
- TibetanFast
- TibetanAlphabet
- TibetanAlphabetBest
- TibetanAlphabetFast
Download
Tibetan Alphabet Language Pack [Tibetan Standard]
Installation
The first thing you need to do is install the Tibetan Alphabet OCR package to your .NET project.
Install-Package IronOCR.Languages.Tibetan
Code Example
This C# code example reads Tibetan Alphabet text from an image or PDF document.
// 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 Class
Notes
- The OCR library (
IronTesseract
) is configured to read the Tibetan language from the provided image. OcrInput
handles loading the input image and ensures proper disposal of resources using theusing
statement.Result.Text
contains the OCR-processed text which can be printed or used within the application.