Kyrgyz 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 kirghize.
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.Kyrgyz
Ce package contient 43 langues OCR for .NET :
- Kirghize
- KyrgyzBest
- KyrgyzFast
Télécharger
Pack de langue kirghize [Kirghize]
Installation
La première chose à faire est d'installer notre package OCR kirghize sur votre projet .NET.
Install-Package IronOcr.Languages.Kyrgyz
Exemple de code
Cet exemple de code C# lit du texte kirghize à partir d'une image ou d'un document PDF.
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Public Class KyrgyzOcrExample
Public Sub PerformOcr()
' Initialize IronTesseract for OCR operations
Dim Ocr = New IronTesseract()
' Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz
' Define the input using an image file path
Using Input = New OcrInput("images\Kyrgyz.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extracted text from the image
Dim AllText As String = Result.Text
' Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Ce bloc de code initialise un objet
IronTesseractpour effectuer la reconnaissance optique de caractères (OCR). - Il définit la langue sur kirghize en utilisant l'énumération
OcrLanguage.Kyrgyz. - La classe
OcrInputest utilisée pour spécifier le chemin d'accès au fichier image à partir duquel le texte sera extrait. Ocr.Read(Input)effectue le processus OCR et fournit un résultat contenant le texte extrait accessible viaResult.Text.- Enfin,
Console.WriteLine(AllText)affiche le texte extrait dans la console.

