Belarusian OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Belarussisch, zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Belarusian
Dieses Paket enthält 55 OCR-Sprachen for .NET:
- Weißrussisch
- BelarussianBest
- BelarussischSchnell
Download
Weißrussisches Sprachpaket [беларуская мова]
Installation
Das erste, was wir tun müssen, ist, unser belarussisches OCR-Paket zu Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Belarusian
Beispielcode
Dieses C#-Codebeispiel liest Belarussischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;
class BelarusianOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian;
// Define the input source: Image or PDF from a path
using (var Input = new OcrInput(@"images\Belarusian.png"))
{
// Perform OCR to read the text
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;
class BelarusianOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian;
// Define the input source: Image or PDF from a path
using (var Input = new OcrInput(@"images\Belarusian.png"))
{
// Perform OCR to read the text
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to access OCR functionalities
Imports IronOcr
Friend Class BelarusianOcrExample
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian
' Define the input source: Image or PDF from a path
Using Input = New OcrInput("images\Belarusian.png")
' Perform OCR to read the text
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Class

