Belarusian OCR in C# and .NET
Autres versions de ce document :
IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le biélorusse.
Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.Biélorusse
Ce package contient 55 langues OCR for .NET :
- Biélorusse
- Meilleur biélorusse BiélorussienFast
Télécharger
Pack de langue biélorusse
Installation
La première chose à faire est d'installer notre package OCR biélorusse sur votre projet .NET.
Install-Package IronOcr.Languages.Belarusian
Exemple de code
Cet exemple de code C# lit du texte biélorusse à partir d'une image ou d'un document PDF.
// 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

