Tibetan Alphabet OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich des tibetischen Alphabets, zu lesen.
Es ist ein fortschrittlicher Fork von Tesseract, der ausschließlich for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Tibetan
Dieses Paket enthält 114 OCR-Sprachen for .NET:
- Tibetisch
- TibetischBest
- TibetischFast
- Tibetisches Alphabet
- Tibetisches AlphabetBest
- Tibetisches AlphabetFast
Download
Tibetisches Alphabet Sprachpaket [Tibetan Standard]
Installation
Das Erste, was Sie tun müssen, ist das Tibetisches Alphabet-OCR-Paket in Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Tibetan
Beispielcode
Dieses C#-Codebeispiel liest Text des tibetischen Alphabets aus einem Bild oder PDF-Dokument.
// 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
Hinweise
- Die OCR-Bibliothek (
IronTesseract) ist so konfiguriert, dass sie die tibetische Sprache aus dem bereitgestellten Bild liest. OcrInputkümmert sich um das Laden des Eingabebildes und sorgt mit der Anweisungusingfür die ordnungsgemäße Freigabe der Ressourcen.Result.Textenthält den OCR-verarbeiteten Text, der gedruckt oder innerhalb der Anwendung verwendet werden kann.

